i need to open the ports 12000 and 8004 right?
if in "config.json" you set the following example ports:
ac_server_http_port": 8081
ac_server_plugin_local_port": 52000
ac_server_plugin_address_port": 52001
web_auth_server_port": 12001
ac_app_link_udp_port": 12002
in the sheet "server_cfg.ini" you will have to set the same ports like this:
UDP_PORT=9600 (assettocorsa, as set by default)
TCP_PORT=9600 (positionstroke, as set by default)
HTTP_PORT=8081 (assettocorsa, as set by default)
UDP_PLUGIN_LOCAL_PORT=52000
UDP_PLUGIN_ADDRESS=127.0.0.1:52001
AUTH_PLUGIN_ADDRESS=127.0.0.1: 12001 /?
So if you set these ports in the "config.json" and "server_cfg.ini" documents, you will need to open all the following ports in your router:
8081 (HTTP port)
52000 (UDP port)
52001 (UDP port)
12001 (AUTH all ports)
12002 (UDP port)
9600 (UDP port)
9600 (TCP port)
If you set everything up like this, your server must work.
if you have a router that is not for gaming or they are the ones that provide you with your contract internet line, there is a serious chance that even if you open the doors you will not be able to run the server and you will have to get a gaming router or better than the one you have , this is what happened to me, then I got a FRITZBOX 7530 and solved the problems.
another thing that could happen to you is to be able to start the server, then once closed you will no longer be able to start it.
This happens to me and I easily solved it like this:
It happens, and I don't know why, that the "server_cfg.ini" file doesn't keep in memory the ports you set, and when you try to restart the server, the ports are different and it doesn't start, to understand if this is the case, open the file "server_cfg.ini" and read the ports if they match your settings.
I created a .txt file that I named "demo" and I put it next to "server_cfg.ini", inside the "demo" I copied the correct ports, so every time I do a simple "copy\paste and save" and the server starts.
example of your "demo":
UDP_PLUGIN_LOCAL_PORT=52000
UDP_PLUGIN_ADDRESS=127.0.0.1:52001
these are the 2 ports that changes you and does not let you start the server.