My problem is the following, my server, on local host, with the FiveM server key of localhost,
and the ip of the code line “endpoint_add_tcp” in 0.0.0.0:30120
and the ip of the line of code “endpoint_add_udp” in 0.0.0.0:30121
The server works perfect … For the local host.
But when I try to connect from another pc online, my server is not listed in the server list.
I got a new FiveM server key, this time from a dedicated server, I put the key in the code,
and the ip of the line of code “endpoint_add_tcp” at 186.19.xxx.xxx:30120
and the ip of the code line “endpoint_add_udp” in 186.19.xxx.xxx:30121
Look in the list of online servers again and it did not appear.
My question then is:
How can I host my server as a dedicated server and appear on the FiveM server list on my PC?
So we had this issue of our server not showing in the online list for a while
Firstly ill give the ground rules then move on to what solved it for us.
Open UDP+TCP on the same port (30120) with windows defender firewall, inbound and outbound traffic. The machine running the server must have these ports open to accept connctions.
Also open port 30110 in the same way.
Take a look at your server.cfg…It should look like this.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
As the file notes, dont change that (unless using multiple network interfaces. , leave it as is in your server.cfg file.
Also type heartbeat in the server terminal a few times, sometimes this resolves the issue
Now what fixed the issue for us weirdly was to move to a different port. We moved the port to 30121 and the server showed up fine, I dont know why but it did.
Best of luck and hope this helps!
1 Like
I think that can help me, thank you very much, I will try and tell you how I was.
Thank you!
Now everything works perfect!
I’m only change de port to 30121