I have a Dialup connection with a Ethernet Lan card . When I have dialed up and connected to the Internet I need to know what IP address is assigned to me by the ISP. Please if anyone could help me out on this.

Jay Meyer

Wow, that is a tough problem. You want to get the IP the way the rest of the internet see it! Have you tried:

InetAddress.getAllByName(InetAddress.getLocalHost().getHostName())
This would get the hostname like "pc1234.aol.com", then do a DNS lookup on that host. It might be flaky because not all ISPs actually assign hostnames and give DNS entries for each dialup connection.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact