Answer the question
In order to leave comments, you need to log in
How to assign ports correctly?
Which port pool is correct or better to use for home services and games?
Answer the question
In order to leave comments, you need to log in
If we are talking about TCP / UDP ports (transport layer), then the main thing is to prevent the intersection of port numbers with those predefined in the system. For example, the FTP protocol uses port 21 by default, RIP uses port 520, and DNS uses port 53. There are a lot of them, but the probability of intersection is extremely small when choosing a port higher than 1024. Use ports in the range 1024-49151 and there will be no problems.
More about port reserve:
https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D...
Right, I think so.
1. Poll the system for unused ports in the range of user (49152-65535, except reserved) ports. Select from them the required number of ports and capture them.
2. Create a service (for example, an HTTP server) on some non-reserved statically assigned port from the range of assigned software ports (4096-49151), which the client can access and get a list of ports captured for the service to work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question