MW3 port/IP binding

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
dilbert
New to forums
New to forums
Posts: 4
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Nov 10, 2011 9:24 am

MW3 port/IP binding

Post by dilbert »

I'm attempting to run multiple instances of MW3 on a VPS, however, I cannot get any commands for binding to a specific IP or changing the game port to work. I see others have successfully changed ports, unless they are NAT'ing I suppose. I'm assuming John somehow did this or worked around it to offer managed servers.

Has anybody successfully run more than 1 instance? What are the commands for changing the default port and binding to a specific interface/IP?


thanks.
Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: MW3 port/IP binding

Post by Edge100x »

You can change the port but not the IP through game options. The example server.cfg in the "players2" folder as downloaded through the hldsupdatetool provides the documentation for these command-line options:
//////////////////////////////////////////////////////////
// Server command-line parameters (this section is for documentation only)

// Specify server configuration file (this file)
//+seta sv_config "filename" (default "server.cfg")

// Specify server visibility (1 = LAN, 2 = Internet (default) )
//+seta dedicated 1

// Open game port (Steam-visible server game port)
//+seta net_queryPort 27014

// Secure game port
//+seta net_port 27015

// Steam authentication port
//+seta net_authPort 8766

// Steam master server (server browser) port
//+seta net_masterServerPort 27016
Note that the default for net_queryPort is 27017, not 27014.
dilbert
New to forums
New to forums
Posts: 4
Joined: Thu Nov 10, 2011 9:24 am

Re: MW3 port/IP binding

Post by dilbert »

When I do this, I get an error saying the command is write protected.
Image
dilbert
New to forums
New to forums
Posts: 4
Joined: Thu Nov 10, 2011 9:24 am

Re: MW3 port/IP binding

Post by dilbert »

]seta net_port 28015
net_port is write protected.
]net_queryport 28017
net_queryPort is write protected.
Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: MW3 port/IP binding

Post by Edge100x »

As the documentation indicates, these are set on the server command line. They cannot be changed after the server is started.
dilbert
New to forums
New to forums
Posts: 4
Joined: Thu Nov 10, 2011 9:24 am

Re: MW3 port/IP binding

Post by dilbert »

this was done prior to start_map_rotate on the server command line. Should this be added to a command via a shortcut to execute at startup??
Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: MW3 port/IP binding

Post by Edge100x »

It needs to be done on the server command line. iw5mp_server.exe +seta net_port 28015 ... etc.
Post Reply