简体   繁体   中英

Find server IP in local network with known port in python socket

I'm designing a network game and I specified a port for my game. How can I program the client side to find the ip of local servers with my specified port number. What I mean is how can I find ip of server by knowing opened port?

The Answer to your question has already been posted on stackoverflow here's the Link . This link explains how it works .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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