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?