阅读背景:

java InetAddress.getLocalHost();返回127.0.0.1 ...如何获得REAL IP?

来源:互联网 

I'm writing a simple networking app... I need to know the real ip of my machine on the network, like 192.168.1.3 . getLocalHost returns 127.0.0.1 (on Linux, dunno if it is the same on windows) how to do it?;I'm writing a simple networking app... I need t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: