用getLocalHost获取到的不是本机的ip地址,而是本机.mshome.net的地址,这要怎么解决,我想直接获取本机地址。
InetAddress.getLocalHost().getHostAddress()