server port is not visible to outside
I was able to install the server on my ubuntu VPS. When I create a server and start it, it shows started on the specified port. But it is not visible to outside.( Port is closed. )
I have tested the same port(28960) with a simple http server using python to make sure my firewall blocks it or not. I can see the http server on the 28960 port when python server runs. Which means nothing blocks the port.
I guess this is some kind of permission issue or something I missed during the installation.
@NeHo can you please help understand and fix it?
@fxamila servers are started with "screen" make sure you have it installed
You can always start the server manually, you should have a new directory called cod4-2860, navigate there and try to start the server manually, if there is any file missing you can see it in console
Try it out manually, copy/paste the start-line from the website (admin section, then go to server edit you will see the line)
If the server is running make sure your port is not blocked by firewall
You can see opened ports with next command
sudo ufw status
To open the port use this command if it is not listed in status
sudo ufw allow 28960
But before you start to play with ports try to start the game server manually so that you are sure it runs
I tried the manual approach and found the issue. in the command line there was the +set net_ip <my_ip_address> and it was not able to bind to the IP. So the server was terminated with error.
When I removed that option from the command it starts without error, Now I can see the server from internet. Looks like the problem is solved. Thanks Man.