Fatal error: Could not bind on 45.137.116.59:30238 - is this adress valid and not already in use?

this is what i get when i type ""cd /d D:\FXServer\server-data
D:\FXServer\server\FXServer.exe +exec server.cfg
" in the cmd.

im talking about the steps below, the “normal” server work, but its the 2nd one that i cant startup with the cmd prompt.

Installation

  1. Create a new directory (for example D:\FXServer\server), this will be used for the server binaries.
  2. Download the current recommended master branch build for Windows from the artifacts server.
  3. Extract the build into the directory previously created.
    3b. Use any archiving tool (such as WinRAR or 7-Zip).
  4. Clone cfx-server-data in a new folder outside of your server binaries folder, for example, D:\FXServer\server-data.
    4b. git clone https://github.com/citizenfx/cfx-server-data.git server-data
  5. Make a server.cfg file in your server-data folder (copy the example server.cfg file below into that file).
  6. Set the license key in your server.cfg using sv_licenseKey "licenseKeyGoesHere".
  7. Run the server from the server-data folder. For example, in a plain Windows command prompt (cmd.exe) window:
cd /d D:\FXServer\server-data
D:\FXServer\server\FXServer.exe +exec server.cfg

If you’re trying to run two servers on one host, you’ll need a second server.cfg that binds the server to a different port.

oh ye thats probably it! (im new to this btw)

and yes it was 2 server at once they both share same server.cfg except the license key.

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

should i change any of these you mean?

thanks for the reply

Change both of those in a second server.cfg for the second server.

does it matter what i change them to?

Any port should be fine. Make sure you open it at the host firewall though. I would keep them consecutive for ease, but that’s personal preference (ie: 30120, 30121, 30122).

You could also use nested config files to make it easier to manage. Think:

server1.cfg

# Set endpoint for server 1
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

# Set server name for server 1
sv_hostname "My Server #1"

# License key for your server 1 (https://keymaster.fivem.net)
sv_licenseKey changeme

# Include the general server config file
exec server_config.cfg

server2.cfg

# Set endpoint for server 2
endpoint_add_tcp "0.0.0.0:30121"
endpoint_add_udp "0.0.0.0:30121"

Set server name for server 2
sv_hostname "My Server #2"

# License key for your server 2 (https://keymaster.fivem.net)
sv_licenseKey changeme

# Include the general server config file
exec server_config.cfg

server_config.cfg

# This file would contain all of the resources and config options you want to be replicated on both servers

ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap

sv_scriptHookAllowed 0

# 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.fivem:1 group.admin # add the admin to the group

# enable OneSync (required for server-side state awareness)
set onesync on

# Server player slot limit (see https://fivem.net/server-hosting for limits)
sv_maxclients 48

# Steam Web API key, if you want to use Steam authentication (https://steamcommunity.com/dev/apikey)
# -> replace "" with the key
set steam_webApiKey ""

I really cant make it work, you would be able to help me trough disc or something?

i tried this, it now says i dont have a license key set, but i do have that in all of the server cfgs.