0
我想使用scala在变量中设置ipaddress。我已经尝试过下面的场景。我没有得到我正在寻找的东西。如何在scala代码中使用系统IP地址?
val sysip = System.InetAddress.getLocalHost();
你能帮忙吗?
我想使用scala在变量中设置ipaddress。我已经尝试过下面的场景。我没有得到我正在寻找的东西。如何在scala代码中使用系统IP地址?
val sysip = System.InetAddress.getLocalHost();
你能帮忙吗?
的可能的复制找到更多的细节[获取当前计算机使用Scala的公共IP地址](https://stackoverflow.com/questions/38392549/get-public- ip-address-of-the-current-machine-using-scala) –
你试图获得哪个IP? – pedrofurla