Can't connect to localhost (FXServer)

Hi,

I got a problem I’m trying to direct connect to my server and it says “Server could not be found.”, I’m trying to connect on localhost aka 127.0.0.1. The server is running under the lastest update (309-e44d5f1a83e966ed676fcc82b417215e1d86b4c3) and I followed the tutorial here https://wiki.fivem.net/wiki/Running_FXServer with nothing more or less.

I also have opened my port 30110 to 30120 and still nothing. I tried 127.0.0.1, 127.0.0.1:30120 and so on with my IPv4 local too (ipconfig).

Somethings not right, it should start more resources than just sessionmanager.
image

I have this server.cfg :

# you probably don't want to change these!
# only change them if you're using a server with multiple network interfaces
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start ■■■■■■■
start scoreboard

sv_scriptHookAllowed 1

# change this
#rcon_password yay

sv_hostname "My new FXServer!"

# nested configs!
#exec server_internal.cfg

# loading a server icon (96x96 PNG file)
#load_server_icon myLogo.png

# convars for use from script
set temp_convar "hey world!"

# disable announcing? clear out the master by uncommenting this
#sv_master1 ""

# want to only allow players authenticated with a third-party provider like Steam?
#sv_authMaxVariance 1
#sv_authMinTrust 5

# add system admins
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_principal identifier.steam:110000112345678 group.admin # add the admin to the group

# hide player endpoints in external log output
#sv_endpointprivacy true

are you sure you are actually executing the server.cfg too?

1 Like

My server folder is here :
C:\Users\Votirono\Desktop\TS\FXServer

Server data :
C:\Users\Votirono\Desktop\TS\FXServer\server-data

Command from server-data :
C:\Users\Votirono\Desktop\TS\FXServer\run.cmd +exec server.cfg

Nervermind I found out why : my bad, I used a - for exec in a bat but it was a +exec sorry folkds thanks for all anyway.

Change in server.cfg

endpoint_add_tcp “0.0.0.0:30120”
endpoint_add_udp “0.0.0.0:30120”

For

endpoint_add_tcp “127.0.0.1:30120”
endpoint_add_udp “127.0.0.1:30120”

2 Likes

This is wrong. For anyone visiting this later, this will make it so only you can connect to the server via localhost.

1 Like

I know, thank you, but if you are working on the server it does not matter that only you can connect, once you publish the server you can change it back to 0.0.0.0

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.