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.
Created May 7, 2012
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.