如何获取一个URL的IP

drinkanothercup 2004-01-16 08:53:27
例如:如何获取www.sina.com.cn的IP?
...全文
147 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
dddd8888 2004-01-16
  • 打赏
  • 举报
回复
网络通的话 ping www.sina.com.cn
killghost 2004-01-16
  • 打赏
  • 举报
回复
ping www.sina.com.cn
drinkanothercup 2004-01-16
  • 打赏
  • 举报
回复
hehe, 大家搞错了,或者我没说明白,我是说如何在程序中实现!weimj的idea有点门道。我试试!
weimj 2004-01-16
  • 打赏
  • 举报
回复
GetHostByName
ysjjsj 2004-01-16
  • 打赏
  • 举报
回复
运行,
ping www.sina.com.cn
honkyjiang 2004-01-16
  • 打赏
  • 举报
回复
D:\new>ping www.sina.com.cn

Pinging antares.sina.com.cn [218.30.12.191] with 32 bytes of data:

Reply from 218.30.12.191: bytes=32 time=100ms TTL=53
Reply from 218.30.12.191: bytes=32 time=100ms TTL=53
Reply from 218.30.12.191: bytes=32 time=100ms TTL=53
Reply from 218.30.12.191: bytes=32 time=100ms TTL=53

Ping statistics for 218.30.12.191:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 100ms, Maximum = 100ms, Average = 100ms

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧