java 打印机ip_Java遍历所有网卡打印对应IP

这篇博客展示了如何使用Java遍历系统中所有的网络接口,并打印出对应的IPv4和IPv6地址,包括本地环回地址127.0.0.1和其他多个网络接口的IP地址。
摘要由CSDN通过智能技术生成

Interface lo:

v6:0:0:0:0:0:0:0:1v4:127.0.0.1Interface net0:

Interface net1:

Interface net2:

Interface ppp0:

Interface eth0:

Interface eth1:

Interface eth2:

Interface ppp1:

Interface net3:

Interface net4:

Interface eth3:

Interface eth4:

Interface net5:

Interface eth5:

Interface net6:

Interface net7:

Interface net8:

Interface net9:

v6:fe80:0:0:0:0:100:7f:fffe%19Interface eth6:

v6:fe80:0:0:0:995d:ea5a:42c2:75a6%20Interface net10:

Interface eth7:

v6:fe80:0:0:0:c61:34b5:e716:b2c0%22Interface net11:

v6:fe80:0:0:0:11d7:823:d6e6:4d1d%23v4:172.16.119.22Interface eth8:

Interface net12:

Interface net13:

v6:fe80:0:0:0:818f:a275:9fd5:6fde%26Interface net14:

v6:fe80:0:0:0:fcad:518c:fb2a:8d02%27Interface net15:

v6:fe80:0:0:0:0:5efe:c0a8:f301%28Interface net16:

Interface eth9:

v6:fe80:0:0:0:8c7f:6874:40c6:c23e%30v4:192.168.243.1Interface eth10:

v6:fe80:0:0:0:c12b:9cdb:edc3:1dae%31v4:192.168.75.1Interface net17:

Interface net18:

v6:fe80:0:0:0:0:5efe:ac10:7716%33Interface eth11:

Interface net19:

v6:fe80:0:0:0:0:5efe:c0a8:4b01%35Interface eth12:

Interface eth13:

Interface net20:

Interface net21:

Interface eth14:

v6:fe80:0:0:0:d9f:7d1b:e2e3:689b%40Interface net22:

Interface net23:

Interface net24:

Interface eth15:

Interface eth16:

Interface net25:

Interface net26:

Interface eth17:

Interface eth18:

Interface eth19:

Interface eth20:

Interface eth21:

Interface eth22:

Interface eth23:

Interface net27:

Interface net28:

Interface net29:

Interface net30:

Interface net31:

Interface net32:

Interface net33:

Interface net34:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值