在机器人编程外部IP地址机器人、地址、IP

2023-09-06 01:02:48 作者:可不可以不勇敢

我已到处搜寻关于如何得到外部的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.

焊接机器人编程的2种方法

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.

解决方案

However, I do not want to make any calls to the websites, is there a built in way to get this?

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".