my dog learned polymorphism
The moose likes Sockets and Internet Protocols and the fly likes How to get my dial-up IP address? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "How to get my dial-up IP address?" Watch "How to get my dial-up IP address?" New topic

How to get my dial-up IP address?

simen wu

Joined: Feb 18, 2001
Posts: 11
My computer has a static IP in the local network. When I dial up to visit Internet, the ISP will give me a new IP address. My question is, in Java how to get this new IP address?
I find that it will return my static IP address when I use InetAddress.getLocalHost().
Can anyone give me some help?
Van Glass
Ranch Hand

Joined: Nov 18, 2000
Posts: 110
Unfortunately this is not supported in Java
JScape - Java Network Components
netharam ram
Ranch Hand

Joined: Aug 09, 2001
Posts: 202
Hi,I have a small doubt.If we can't find the new IP address how does instant messengers work,or is it impossible to develop an instant messenger in java?Please clear this for I'm under the idea of developing an instant messenger.
I agree. Here's the link:
subject: How to get my dial-up IP address?
It's not a secret anymore!