Network Ports

Everything else that doesn't fall into one of the other PB categories.
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Network Ports

Post by Foz »

Here's something that I've been wondering:

Is there a "best practice" when you want to allocate tcp/ip port(s) for a server/client program?

I know the general "don't use anything under 1000" rule, but are there any other "rules" that I should know about, or is it a free for all - pick a number and roll with it?
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: Network Ports

Post by jassing »

Pick a number that isn't commonly used as a default, allow it to be changed in configuration...
A pretty good list can be found here
http://en.wikipedia.org/wiki/List_of_TC ... rt_numbers
User avatar
codewalker
Enthusiast
Enthusiast
Posts: 331
Joined: Mon Mar 27, 2006 2:08 pm
Location: Spain

Re: Network Ports

Post by codewalker »

Don´t use portnumbers frequently used by spammers, hackers, malware, public services, mail, etc. etc. etc.
Google is your friend in this.
cw
There is a difference between knowing the code and writing the code.
May the code be strong in your projects.
Post Reply