qt 获取本机的公网IP、内网IP、网关

时间:2020-02-27 05:14:31
【文件属性】:
文件名称:qt 获取本机的公网IP、内网IP、网关
文件大小:50KB
文件格式:RAR
更新时间:2020-02-27 05:14:31
QT IP获取 获取设备端的公网IP、内网IP以及网关。
【文件预览】:
getComIP
----main.cpp(4KB)
----mainwindow.h(237B)
----ip.txt(15B)
----getComIP.pro(355B)
----getComIP.bat(305B)
----Makefile.Debug(6KB)
----release()
--------getComIP.exe(84KB)
--------moc_mainwindow.o(8KB)
--------main.o(30KB)
--------moc_mainwindow.cpp(2KB)
--------mainwindow.o(1KB)
----mainwindow.cpp(142B)
----Makefile.Release(6KB)
----Makefile(7KB)
----getComIP.pro.user(53KB)
----debug()

网友评论

  • 获取网关只是把ip最后一个强制变成1.实际网关并不是这样的。 还有获取公网IP的网址文件不行,换成 WScript.GetObject("http://2019.ip138.com/ic.asp") 就好。不知道明年会不会变。
  • 没用,把IP最后一段去了,变成1就变网关了,这也能行吗,哈