I
Ike
If I have a client, plugged directly into the internet, say, on a phone
modem, I can get the IP with:
InetAddress.getLocalHost().getHostAddress();
However, if I am also plugged into an ethernet, AND directly into the
internet(again, say, with a phone line) that same call,
InetAddress.getLocalHost().getHostAddress(),
only gets me the IP on the LAN. How can I, under such a circumstance, find
out what the IP is of a given internet connection in such a case? Thanks,
Ike
modem, I can get the IP with:
InetAddress.getLocalHost().getHostAddress();
However, if I am also plugged into an ethernet, AND directly into the
internet(again, say, with a phone line) that same call,
InetAddress.getLocalHost().getHostAddress(),
only gets me the IP on the LAN. How can I, under such a circumstance, find
out what the IP is of a given internet connection in such a case? Thanks,
Ike