简体   繁体   English

如何在本地网络上找到另一台计算机或服务器的公共IP?

[英]How to find the public ip of another computer or server on my local network?

I've googled this a bit, and all I find are tips on how to find the public IP of my current machine. 我已经用谷歌搜索了一下,发现的只是有关如何查找当前计算机的公共IP的提示。

I have: The target computer's local IP address and computer name; 我有:目标计算机的本地IP地址和计算机名称; log-in credentials on the target computer. 目标计算机上的登录凭据。

I'm using Windows on all local machines. 我在所有本地计算机上都使用Windows。 Ideally, I'd like a solution that I can batch (like a set of powershell commands or something). 理想情况下,我想要一个可以批量处理的解决方案(例如一组powershell命令或其他内容)。

You can do the third party server method. 您可以执行第三方服务器方法。 All computers know how to access the server, the server delivers information to each to tell the other how to communicate with each other. 所有计算机都知道如何访问服务器,服务器将信息传递给彼此,以告诉彼此如何进行通信。

If implemented well, you can use this for Hole Punching and expand the usefulness of the method. 如果实施得当,可以将其用于打孔并扩展该方法的实用性。

Aside from a third party server, this info is pretty interesting (though not tested by me): 除了第三方服务器,此信息非常有趣(尽管未经我测试):

https://apple.stackexchange.com/questions/19783/how-do-i-know-the-ip-addresses-of-other-computers-in-my-network https://apple.stackexchange.com/questions/19783/how-do-i-know-the-ip-addresses-of-other-computers-in-my-network

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM