Raised This Month: $12 Target: $400
 3% 

Max. ports for one IP?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 11-22-2011 , 14:06   Max. ports for one IP?
Reply With Quote #1

what is the maximum number of ports for one ip address?
Im not sure if I can only use these 27015-27030.

If I'd like to have 20 tf2 servers on a dedicated server with one ip, what ports do i need to bind them ?

Last edited by AeroAcrobat; 11-22-2011 at 14:06.
AeroAcrobat is offline
sake
Senior Member
Join Date: Jul 2011
Old 11-22-2011 , 14:19   Re: Max. ports for one IP?
Reply With Quote #2

AFAIK you could even use port 80 for a CS server...
__________________
sake is offline
MonkeyDrone
AlliedModders Donor
Join Date: Jul 2011
Old 11-22-2011 , 15:59   Re: Max. ports for one IP?
Reply With Quote #3

Quote:
Originally Posted by AeroAcrobat View Post
what is the maximum number of ports for one ip address?
Im not sure if I can only use these 27015-27030.

If I'd like to have 20 tf2 servers on a dedicated server with one ip, what ports do i need to bind them ?
You can use any port number for 20 servers on your server, best practice here would be that you implement a gap of an interval of 5.
E.g.

27015
27020
27025
27030
27035
and so on and on for the 20 servers.

Also depending on the number of cores you have. Best advisable that you Taskset your servers if your running a linux based server. Cheers.
MonkeyDrone is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 11-22-2011 , 16:48   Re: Max. ports for one IP?
Reply With Quote #4

Quote:
Originally Posted by MonkeyDrone View Post
You can use any port number for 20 servers on your server, best practice here would be that you implement a gap of an interval of 5.
E.g.

27015
27020
27025
27030
27035
and so on and on for the 20 servers.

Also depending on the number of cores you have. Best advisable that you Taskset your servers if your running a linux based server. Cheers.
thanks for that.
why using a gap ?
AeroAcrobat is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 11-28-2011 , 04:21   Re: Max. ports for one IP?
Reply With Quote #5

The maximum numbers of ports for one IP is around 65000. You can use any port for a cs-server, but should drop port from 0 to 81 as some of them are used for standart usage. Example 80 http, 21 ftp, 22 ssh and so on.
The number of cores, i wonder why you ask that. I can run as many servers i want on my ip, simply adding a router and putting more pc's on that. the limitation in most cases is your bandwidth, not the number of cores.
__________________


Last edited by Mordekay; 11-28-2011 at 04:22.
Mordekay is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 11-28-2011 , 09:14   Re: Max. ports for one IP?
Reply With Quote #6

Quote:
Originally Posted by Mordekay View Post
The maximum numbers of ports for one IP is around 65000. You can use any port for a cs-server, but should drop port from 0 to 81 as some of them are used for standart usage. Example 80 http, 21 ftp, 22 ssh and so on.
The number of cores, i wonder why you ask that. I can run as many servers i want on my ip, simply adding a router and putting more pc's on that. the limitation in most cases is your bandwidth, not the number of cores.
thanks!
I just wanted to be sure bcs I could only run 5 servers on my home pc the rest just didn't showed up in steam server list.

now i know
AeroAcrobat is offline
8088
Veteran Member
Join Date: Jan 2008
Old 11-30-2011 , 18:11   Re: Max. ports for one IP?
Reply With Quote #7

Quote:
Originally Posted by Mordekay View Post
The maximum numbers of ports for one IP is around 65000.
2^16 = 65535 to be exact.
Quote:
You can use any port for a cs-server, but should drop port from 0 to 81 as some of them are used for standart usage. Example 80 http, 21 ftp, 22 ssh and so on.
Actually, to be safe, it's best to avoid any port below 1024. In Linux it even requires root privileges to bind to a lower port. But even when you're using higher ports, to avoid conflicts it may be wise to look up if your desired number isn't conflicting with a service that uses a registered port.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode