登录
首页 » Windows Socket编程 » 获取本机的外网IP和内网IP.内网IP很容易获取,直接调用gethostbyname(name)...

获取本机的外网IP和内网IP.内网IP很容易获取,直接调用gethostbyname(name)...

于 2022-02-25 发布 文件大小:28.40 kB
0 72
下载积分: 2 下载次数: 1

代码说明:

获取本机的外网IP和内网IP.内网IP很容易获取,直接调用gethostbyname(name)->h_addr_list就可以获取,但是外网IP还需要对一个提供显示当前外网IP的网页进行分析才可以获取,具体实现请参照代码.-Access to the machine outside the network and IP network IP. Within the IP network is easy to acquire, directly calls gethostbyname (name)-

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696524资源总数
  • 103957会员总数
  • 51今日下载