Why is my locally hosted FiveM server seen as private by my friends?

Hello everyone,

I am having an issue with my FiveM server that I host at home on my own machine. The server is configured to be public, but my friends who are trying to connect from a distance receive the message “This server cannot be connected to as it is private.”

I have also restarted my server several times and checked the logs, but I do not see any obvious errors. My server is accessible locally, but my friends cannot connect from a distance.

Could you help me understand why my server is seen as private by my friends and how to resolve this issue?

Thank you in advance for your help!

Did you forward ports properly?

You should check and see if you have sv_master1 "" set in your server’s CFG file. If it is then you need to comment it out.

Yes, I confirm that I have correctly opened and redirected the ports from the box to the machine’s port (30120).

I tried commenting out the line and it didn’t change anything.

It does. That is the entire purpose of that line.

Yes, but whether the line is commented out or not, the server is seen as ‘private’.

Show your CFG file and remove any licenses or passwords.

[quote=“termanator1128, post:8, topic:5387643, full:true”]
Show your CFG file and remove any licenses or passwords.
[/quote]# # # # # # # # # # # # # # # # # # # # # # # # # # #

___ _____ __ _ ___ ___ _ _____ __

| __/ __\ / / | | | __/ __| /_\ / __\ \ / /

| |_ > < | || | ( |/ _ \ ( \ V /

||//_\ ||_/_/ __| |_|

Discord: https://discord.esx-framework.org/

Website: https://esx-framework.org/

CFG Docs: Server Commands - Cfx.re Docs

# # # # # # # # # # # # # # # # # # # # # # # # #

Editable Settings

-----------------

You can edit the following:

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

Set Tags

sets tags “official, roleplay, serious”

Optional Editable Settings

--------------------------

You may edit the following:

sv_licenseKey “”
sv_hostname “nowafa | dev server team”

sv_master1 “”

set discord_token “”
sets discord “true”
set onesync on
sets sv_projectName “nowafa | [dev team]”
sets sv_projectDesc “server de dev pour nowa fa”
set mysql_connection_string “mysql://:@192.168.1.2/nowafa?charset=utf8mb4”
load_server_icon logo.png
sv_maxclients 16
sets locale “root-AQ”
sv_enforceGameBuild 3751
set resources_useSystemChat true
sets tags “official, roleplay, serious, fr”
sets sv_projectDesc “Serveur de d�veloppement NowaFA - Roleplay Fran�ais”

System Administrators

---------------------

Add system admins

admin’s groupe

add_principal group.owner group.user
add_principal group.dev group.user
add_principal group.admin group.user
add_principal group.modo group.user
add_principal group.helper group.user

command allow

add_ace group.owner command allow # allow all commands
add_ace group.dev command allow # allow all commands
add_ace group.admin command allow # allow all commands

retrait de la commande quit qui cut le server

add_ace group.owner command.quit deny # but don’t allow quit
add_ace group.dev command.quit deny # but don’t allow quit
add_ace group.admin command.quit deny # but don’t allow quit

acces au admin’s a es_extended

add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
add_ace resource.es_extended command.stop allow

acces au pannel admin du gangbuilder

add_ace group.owner nowafa.gangs.manage allow
add_ace group.dev nowafa.gangs.manage allow
add_ace group.admin nowafa.gangs.manage allow
add_ace group.modo nowafa.gangs.open allow
add_ace group.helper nowafa.gangs.open allow

admin menu

add_ace group.owner adminMenu.group.owner allow
add_ace group.dev adminMenu.group.dev allow
add_ace group.admin adminMenu.group.admin allow
add_ace group.modo adminMenu.group.modo allow
add_ace group.helper adminMenu.group.helper allow

admin via fivem id
add_principal identifier.fivem:group.dev #Many
admin via discord id
add_principal identifier.discord:group.owner #Punky
add_principal identifier.discord:group.owner #Bastoch
add_principal identifier.discord:group.dev #Many
add_principal identifier.discord:group.modo #SNAYZ

pma-voice Config

----------------

setr voice_enableRadioAnim 1
setr voice_useNativeAudio true
setr voice_useSendingRangeOnly true

security-convars

----------------

sv_enableNetworkedSounds false
sv_enableNetworkedScriptEntityStates false
sv_enableNetworkedPhoneExplosions false
sv_filterRequestControl 2

ESX Language (edit to change the language of ESX)

-----------------------------------------------------------

Uncomment to set your own locale,

if not, it will use the language you have selected in txAdmin.

#setr esx:locale “en”

Uncomment to owerride the identifier used by ESX.

By default, it uses the license identifier.

#setr esx:identifier “license”

Default & Standalone Resources

------------------------------

ensure chat
ensure hardcap
ensure oxmysql

ESX Legacy Core

----------

ensure [core]

ESX Addons

----------

ensure [standalone]
ensure [esx_addons]

OX Addons

---------

ensure ox_lib
ensure ox_inventory
ensure ox_target

Nowa

----

ensure [nowa]