ERROR: JK2MV: webserver startup failed: Cannot bind to port

General discussion and help regarding JK2MV.
Post Reply
User avatar
Miso
Posts: 170
Joined: 24 Feb 2015, 02:41
Location: Massachusetts / United States

ERROR: JK2MV: webserver startup failed: Cannot bind to port

Post by Miso »

Hello, I'm trying to run fau's latest version of SaberMod with JK2MV and I'm getting the following error:

Code: Select all

-----------------------------------
*******************
ERROR: JK2MV: webserver startup failed: Cannot bind to port
********************
----- Server Shutdown -----
Resolving masterjk2.ravensoft.com
masterjk2.ravensoft.com resolved to 104.40.23.123:28060
Sending heartbeat to masterjk2.ravensoft.com
Resolving master.jk2mv.org
master.jk2mv.org resolved to 62.113.242.115:28060
Sending heartbeat to master.jk2mv.org
Resolving master.jkhub.org
master.jkhub.org resolved to 46.105.85.237:28060
Sending heartbeat to master.jkhub.org
Sending heartbeat to masterjk2.ravensoft.com
Sending heartbeat to master.jk2mv.org
Sending heartbeat to master.jkhub.org
==== ShutdownGame ====
ShutdownGame:
------------------------------------------------------------
AAS shutdown.
---------------------------
JK2MV: shutting down webserver...
Not sure if it's an issue with the http port it's reading off of or not, but I never had an issue with that until now.

(The mod works without JK2MV and worked with it previously)
Jj.miso
User avatar
ouned
Administrator
Posts: 596
Joined: 23 Feb 2015, 13:03
Location: Gliese581c

Re: ERROR: JK2MV: webserver startup failed: Cannot bind to port

Post by ouned »

Make sure the port you are using is free and not used by anything else
User avatar
Miso
Posts: 170
Joined: 24 Feb 2015, 02:41
Location: Massachusetts / United States

Re: ERROR: JK2MV: webserver startup failed: Cannot bind to port

Post by Miso »

Thanks for the fast fix.

Never had a problem with it until now. Do they usually automatically go to the next port?

I've always ran multiple servers on one IP using different UDP ports
Jj.miso
User avatar
ouned
Administrator
Posts: 596
Joined: 23 Feb 2015, 13:03
Location: Gliese581c

Re: ERROR: JK2MV: webserver startup failed: Cannot bind to port

Post by ouned »

The download system uses it's own port (TCP).
https://github.com/mvdevs/jk2mv/wiki/Se ... -downloads
User avatar
fau
Staff
Posts: 433
Joined: 16 Aug 2015, 01:01
Location: Warsaw / Poland
Contact:

Re: ERROR: JK2MV: webserver startup failed: Cannot bind to port

Post by fau »

In the server package I sent you there is separate jk2mv.cfg, that gets loaded by server.cfg. Set mv_httpserverport there. Maybe it should search for free port just like net_port does?
User avatar
ouned
Administrator
Posts: 596
Joined: 23 Feb 2015, 13:03
Location: Gliese581c

Re: ERROR: JK2MV: webserver startup failed: Cannot bind to port

Post by ouned »

fau wrote:Maybe it should search for free port just like net_port does?
mv_httpserverport
Valid values: 0-65535 (TCP Port), Any URL (http://)
Default value: "0"

If a number is provided it decides on which TCP port the builtin HTTP-Server will listen on. If set to zero it will automatically choose a port between 18200 and 18215, trying every single one till it finds an unused port. Make sure that this port is opened in your Firewall / NAT. Since JK2MV 1.1 external HTTP Servers are supported. The URL should point to the GameData directory of your file server. Note that clients also need at least JK2MV 1.1 in case you are using a URL. Older JK2MV versions will not detect the availability of HTTP Downloads in this case.
Post Reply
Created by Matti from StylesFactory.pl and Warlords of Draenor (modified by jk2.info)
Powered by phpBB® Forum Software © phpBB Limited
 

 

cron