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