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?
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.