摘要: JAVA获取本地ip地址因为项目中正好用到本地IP地址,然后上网搜了一下,看写的不是特别详细,所以在这里补充一下。 首先获取到本地设备的名称和IPInetAddress inetAddress = InetAddress.getLocalHost();然后输出为:Q4... 阅读全文
posted @ 2018-01-08 14:48 大漠飞鱼 阅读(1381) 评论(0) 推荐(0) 编辑