Christian-health / scala-learning

学习scala语言
0 stars 0 forks source link

Java InetAddress Class #21

Open Christian-health opened 5 years ago

Christian-health commented 5 years ago
InetAddress.getByName("internal_vip").getHostAddress()
InetAddress---表示互联网协议(IP)地址
---InetAddress.getByName("www.163.com")
----在给定主机名的情况下确定主机的IP地址
----如果参数为null,获得的是本机的IP地址

资料在这里:https://blog.csdn.net/jason_lee155/article/details/78515276 image