Author Topic: Port Resets After Changing  (Read 2046 times)

My port is for some reason set default at 28100, and when I change it to 28000 it changes back to the other one. This causes my server to have a ping of ---.

Manually edit $Pref::Server::Port in config/server/prefs.cs.

Manually edit $Pref::Server::Port in config/server/prefs.cs.

I've already tried that, but I'm pretty sure it resets after I start my server.

Do it while your server is stopped.

Do it while your server is stopped.

How else would it update the port?

How else would it update the port?
What?

1) Make sure your server is stopped.
2) Edit the prefs.cs file to set the correct port.
3) Start your server.

1) Make sure your server is stopped.
2) Edit the prefs.cs file to set the correct port.
3) Start your server.

I've already done all that before I posted the topic.

Post a console log from your server.

There.


Code: [Select]
Binding server port to default IP
UDP initialized on port 28000

Initializing UPnP...
--------------------
List of UPNP devices found on the network :

 desc: http://192.168.1.1:2555/upnp/9bcffeb3-1e93-3b4e-b418-8c8ef61de437/desc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1


 desc: http://192.168.1.1:2555/upnp/9bcffeb3-1e93-3b4e-b418-8c8ef61de437/desc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1


 desc: http://192.168.1.1:2555/upnp/9bcffeb3-1e93-3b4e-b418-8c8ef61de437/desc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1


Found valid IGD : http://192.168.1.1:2555/upnp/a64e8f83-ef03-3055-b615-0a912371dcfe/WANIPConn1.ctl

Local LAN ip address : 192.168.1.2

ExternalIPAddress = 173.51.48.159

AddPortMapping(28000, 28000, 192.168.1.2) failed with code 718 (ConflictInMappingEntry)

Binding server port to default IP
UDP initialized on port 28100

There is a conflict. Make sure nothing else is using the port 28000, possibly another server.
Remember, dedicated and listen servers both use ports, and they must be different.

There is a conflict. Make sure nothing else is using the port 28000, possibly another server.
Remember, dedicated and listen servers both use ports, and they must be different.

OP, you can probably ignore this and simply reboot your computer and your router. To restart your router, unplug it, wait 10 seconds, and then plug it back in.

Subpixel, that error typically indicates issues with the router, just for future reference.

OP, you can probably ignore this and simply reboot your computer and your router. To restart your router, unplug it, wait 10 seconds, and then plug it back in.

Are you sure that rebooting the router would work?

Disable UPnP and close Blockland.
Make sure port 28000 is forwarded and nothing else uses it.

Go to config/server/prefs.cs and find the line starting with "$Pref::Server::Port", and replace it with "$Pref::Server::Port = 28000;"

It's simple as this. Port above me needs to stop resetting every time he gets changed.