F
Flamadin
Hello, I need to check internet conection. Actualy I use:
InetAddress[] all =
InetAddress.getAllByName(InetAddress.getLocalHost().getHostName());
Whith this code, when a computer is conected to a lan but isn't conected to
internet, I only get the private address, and when it uses a dial-up
conection and I try to check internet conection again (the program is still
running) this function returns the same (only private address). How can I
refresh IP address?
Thanks
Patrick
InetAddress[] all =
InetAddress.getAllByName(InetAddress.getLocalHost().getHostName());
Whith this code, when a computer is conected to a lan but isn't conected to
internet, I only get the private address, and when it uses a dial-up
conection and I try to check internet conection again (the program is still
running) this function returns the same (only private address). How can I
refresh IP address?
Thanks
Patrick