本文介绍了在机器人编程外部IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已到处搜寻关于如何得到外部的IP地址与无济于事。我能够顺利拿到本地IP地址。

总之我想要做的就是同一个IP地址,当我去whatip.com或whatismyipaddress.com。但是,我不想做任何调用网站,有一个内置的方式来获得吗?再次感谢!

此外,我希望外部ip地址,如果用户连接到无线网络。

解决方案

没有。这是大多数的硬件,包括台式机和笔记本电脑,更别说手机是不可能的。通常情况下,你的背后某种NAT的,它定义了你的外部IP地址。

I have searched everywhere on how to get the external ip address with no avail. I am able to successfully get the local ip address.

In short what i want to do to get the same ip address as when i go on whatip.com or whatismyipaddress.com. However, I do not want to make any calls to the websites, is there a built in way to get this? Thanks again!

Also, i want the external ipaddress if the user is connected to wifi.

解决方案

No. This is impossible on most pieces of hardware, including desktops and notebooks, let alone phones. Generally, you are behind some sort of NAT, which defines your "external ip address".

这篇关于在机器人编程外部IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 14:13