• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to find network connection type in Java

 
Sameer sam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All,
I am in a situation where I have to find out the connection type at runtime from a java program.Actually I want to know what type of connection is being used.is it
Dial up
or
DSL connection
or
Coporate network etc.

Thanks in advance.

Sameer
[ October 15, 2005: Message edited by: Sameer sam ]
 
dema rogatkin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try to run ipconfig from Java and parse result.
 
Paul Clapham
Sheriff
Posts: 21886
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just installed RealPlayer on my computer and I noticed that the way they found this information was to ask me. If they can't automate finding the answer then I suspect it can't be automated.
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect that the reason RealPlayer prompts you for that information is more for statistics on their audiance rather than setting the level of service. Every time I go to watch or listen to something, there is usually a choice between dialup and broadband streams.
Sameer, is there a reason you need to know? Is there a reason you can't prompt users? Would it be enough to have your client exchange some data with your server and derive throughput from that? dslreports.com does something similar to measure one's broadband connection. Keep in mind that it would require the user to sit there and wait for the throughput test to complete, and that may lead users to curse and go elsewhere.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!