Scanning ports opened by an IP on a LAN via python code
**
At this point found that the thread is less than or equal to 800, the code can run normally, greater than the error will occur, found that the number of thread concurrency is too much, the system does not support so many threads concurrently.
**
**
So here's a limit on the number of threads that can concur at once, solving the problem of not being able to start a news thread
**
**
After limiting the maximum number of concurrent scans, it took less than a minute to scan all ports from 1 to 10000.
**
This article on the implementation of Python scanning port is introduced to this article, more related Python scanning port content, please search my previous posts or continue to browse the following related articles I hope you will support me more in the future!