简体   繁体   中英

how to get the port of an ip address?

I got a challenge from my teacher today. He gave us an IP number of a server that we need to send our name to by a socket. So, my qestion is how can I find the port number only with the IP?

尝试扫描给定的ip并查找与您对话的开放端口,或者只是尝试将消息发送到每个开放端口。

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