Could not bind on 0.0.0.0:30120

When i’m launching server, the server start normally but could not bind on 30120 port.
I checked if port 30120 is already linked to another program or server, but it’s not.
I do not know what to do to fix this and I can not join my server because of this.
I would be very grateful if you could help me !

GTA V version?
– latest version
Up to date?
– yes
Version?
– Debian 8 (dedicated server)
Error screenshot (if any)
Netstat command
Server Log
What did you do to get this issue?
– open port 30120
– restart VPS
– Check if port 30120 is already open.

What server did you get this issue on?
– in my own server

small precision: yesterday, everything worked very well and I have not touched since, just restarted server.

1 Like

Can you provide your server.cfg please? Mask the key before sending it.

1 Like
# 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"

set es_enableCustomData "1"
set mysql_connection_string "server=127.0.0.1;database=gta5;userid=root;password=PASS"

start mapmanager
start chat
start whitelist
start keks
start nowanted
start spawnmanager
start baseevents
start sessionmanager
start fivem-map-skater
start hardcap
start ■■■■■■■
start scoreboard
start playernames
start Emotes
start Compteur_Vitesse
start Essence
start LockSystem
start Car_Heal
start msq
start InteractSound
start assets
start MissionText
start mysql-async
start essentialmode
start banking
start esplugin_mysql
start es_admin2
start spawn
start paycheck
start jobs-system_fr
start es_depanneur
start es_depanneur_menu
start police
start garages
start blockmarker
start noweapon
start es_truckerjob

restart sessionmanager

sv_scriptHookAllowed 0

# change this
rcon_password MyPass

sv_hostname "[FR][Pre-Alpha] BH-Five RP"

# nested configs!
#exec server_internal.cfg

# loading a server icon (96x96 PNG file)
load_server_icon logo.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

# remove the # to hide player endpoints in external log output
#sv_endpointprivacy true

# server slots limit (must be between 1 and 31)
sv_maxclients 30

# license key for server https://keymaster.fivem.net
sv_licenseKey MyKey
2 Likes

Well now that you put that up with your MySQL string in it you’ll want to change that password too. oops.

Everything looks fine, try changing the port number and see if it can bind to 30121?

2 Likes

Same thing :confused:

Could not bind on 0.0.0.0:30121 - is this address valid and not already in use?

i have tested with 30125 but still same :confused:

Could not bind on 0.0.0.0:30125 - is this address valid and not already in use?
4 Likes

This is a weird one, not quite sure here.

I really do not know what to do :confused:

could this come from license keys ?
I have 2 keys that are assigned to the ip address of my vps it may be from that

That wouldn’t cause a bind error though.

3 Likes

contact your VPS and see what they can do for you, its on there end.

I have contacted my VPS host and it does not come from him since other ports are allocated without problems :confused: (22 and 80 port for example)

I have completely reinstalled my vps and fivem server but it’s the same thing :confused:

error:

Started resource sessionmanager
Could not bind on 0.0.0.0:30120 - is this address valid and not already in use?

1 Like

Hey trying doing the following to see what is being used on that port.

Start>>All Programs>>Accessories>>System Tools>>Resource Monitor
or Run resmon.exe, or from TaskManager performance tab

It should look like the below

There you should be able to see what is being used on that port and close it.

If something is binded to that port it would usually mean something is already open and running using it.

6 Likes

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