Problem with FiveM connection to port [Could not bind on X.X.X.X:30120 - is this address valid and not already in use?]

Hello,

When I use port 0.0.0.0 I have no problem (But then players can not login the server.), but when I change it with any IP from system it gives me this problem: Could not bind on X.X.X.X:30120 - is this address valid and not already in use?

  • Port is open in FireWall
  • I use CentOS 7
Server config

only change these if you’re using a server with multiple network interfaces

endpoint_add_tcp “X.X.X.X:30120”

endpoint_add_udp “X.X.X.X:30120”

start mapmanager

start chat

start spawnmanager

start sessionmanager

start fivem

start hardcap

start ■■■■■■■

start scoreboard

start playernames

allow client mods such as Lamda Menu?

sv_scriptHookAllowed 1

change this

#rcon_password yay

a comma-separated list of tags for your server

for example: sets tags “drifting, cars, racing” or sets tags “roleplay, military, tanks”

sets tags “default”

sv_hostname “FiveM”

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!”

Uncomment to DISABLE your server coming up in the server list

#sv_master1 “”

want to only allow players authenticated with a third-party provider like Steam (don’t forget, Social Club is a third party provider too!)?

#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 32)

sv_maxclients 30

sv_licenseKey “XXXXXXXXXXXXXXXXXXXXX”

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the FiveM community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

No need to change your endpoint_add_tcp just leave it on 0.0.0.0 so it listens on all ips. Make sure your firewall is open and then try to connect with your external server ip

1 Like

Yeah, I have found the problem. My Hardware & Software firewall is blocked port 33120 now the problem is fixed.

Thanks for helping!

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