Make multiple FX servers

fxserver

#1

hey, I have made one FX server public and it is white listed I am wondering if I could make 1 more public server, Is that possible or do I need another computer to do that?


#2

Yes you can!
Change the port server

First Server:

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

Second Server

endpoint_add_tcp "0.0.0.0:30121"
endpoint_add_udp "0.0.0.0:30121"

#3

do i also make a new port forwarding as well?


#4

Yes. If your IP is behind a NAT then you need to open the new ports. Just make sure you have enough bandwith.


#5

it still doesnt work and now My other FX server that use to come up on the server list is not there. can you see if you can connect to it?: 202.161.14.187:30120
PS i turned the whitelist off for now


#6

Yes i can connect, change the license key from the second server and how are you starting your second server?


#7

I can direct connect to “202.161.14.187:30120”.
The IP to the second server would be “202.161.14.187:30121” if you followed @Cheleber’s ports.

Edit: Ah yes, don’t forget about a new license key.


#8

this is my whitelisted 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 "10.1.1.74:30120"
endpoint_add_udp "10.1.1.74:30120"

#starting server mains
start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start rconlog
start scoreboard
start playernames
start RPDeath

#imported files
start gruppe6pack
start help 
start Captain14_Sheriff
start Captain14_LSPD
start Captain14_FBI
start synn-loadscreen-master
start servercommands
start carhud
start adminowner
start mb_AMG
start Mustang
start AMG_c63s
start gtr
start Land_Rover
start lux_vehcontrol
start Jailer
start fuel
start AOP
start WeightStation
start more_trees
start nasacars
#start handsup
#start cuff
start loadoutmenu
start DeleteObjects
start wk_actionmenu
start heli
start mbenz_c63
start Admin_car_1221
start peds
start bearcat
start ads
start deleteveh
start Hospital
start peds
start 2016-chp-megapack
start emotes
start ToastysCruiseControl
start me_do_this
start road2020
start RAM16
start charger
start aventador
start chargers
start 2014_Dodge_Charger
start wk_wrs
#start ARMY
#start bike
start realvehdamage
start vehicle-control
start vSync
start pdmegapack
start EasyAdmin
#start sound
start ChatShowIDFX
start rolesFX
#start sheriff
#start killhouse
start LeaveEngineRunning
start cuff-handsup-master
#start Admin



sv_scriptHookAllowed 1

####################################################################################################
# Add everything from this file into your server.cfg and change the settings to fit your needs.    #
# If you enable the whitelist, don't forget to go all the way to the bottom of this file for       #
# instructions on how to add players to the whitelist.                                             #
####################################################################################################

################################
##    vBasic Configuration    ##
################################

# Enable PVP?
set vb_enable_pvp true

# Disable wanted level for everyone?
set vb_disable_wanted_level true

# Do you want AI police, ambulance, fire department or any other emergency services to be 
# disabled from responding to events in-game?
set vb_disable_emergency_services false

# Should godmode be enabled for everyone?
set vb_force_god_mode_enabled false

# When a player joins, should there be a message sent to that player?
set vb_enable_welcome_message false

# If you enabled the welcome message above, do you want it to be sent to all players? 
# (true = yes send it to everyone, false = no send it just to the player that joined)
set vb_make_welcome_message_global false

# If you enabled the welcome message, customize the message contents here
# `{player}` will be replaced with the player's name. You can use color codes ^0-^9.
set vb_welcome_message "Hello {player}, welcome to the server!"

# Should the whitelist be enabled?
#set vb_enable_whitelist true

# Set the kick message for players that aren't whitelist.
set vb_whitelist_kick_message "Sorry, you are not whitelisted! please Join the PUBLIC server and apply online, If you are in fact Whitelisted please contact a Admin"

# Enable crowd/ped density control and vehicles/traffic density control? 
# True = enabled, false = disabled.
set vb_enable_crowd_control false
set vb_enable_traffic_control false

# If you set the density controls to true above, customize the density here. 
# Should be a number between 0.0 and 1.0 (otherwise it will crash).
set vb_crowd_density 1.0
set vb_traffic_density 1.0

# Enable unlimited stamina/sprinting?
set vb_enable_unlimited_stamina true

##########################################
##   Don't touch any of the following   ##
##   convars, doing so will prevent     ##
##   the script from working correctly. ##
##########################################
set vb_check true
set vb_debug false

##########################################
## All convars are now setup, good job! ##
##########################################

start vBasic

##########################################
##  vBasic Whitelist Settings/Examples  ##
##########################################

## Add IP's to the whitelist:
add_ace identifier.ip:127.0.0.1 vbasic.whitelisted allow
add_ace identifier.ip:192.168.0.2 vbasic.whitelisted allow
add_ace identifier.ip:10.1.1.74 vBasic.whitelisted allow

## Add STEAM HEX ID to the whitelist:
add_ace identifier.steam:110000105959047 vbasic.whitelisted allow
add_ace identifier.steam:1100001073a0689 vbasic.whitelisted allow
add_ace identifier.steam:1100001323cb6fa vBasic.whitelisted allow
add_ace identifier.steam:110000118e687a9 vBasic.whitelisted allow #matto MC
add_ace identifier.steam:11000010de30df1 vBasic.whitelisted allow
add_ace identifier.steam:11000010c19eddd vBasic.whitelisted allow

## Add License to the whitelist:
add_ace identifier.license:4510587c13e0b645eb8d24bc104601792277ab98 vbasic.whitelisted allow
add_ace identifier.license:b79d4f04017adf7edbc227b2dd8252850eae1906 vbasic.whitelisted allow

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

set ea_MenuButton "213"			# set our menu button to F2. default: "289"
set ea_alwaysShowButtons "false"	# we don't want to see buttons we can't even access, do we? default: "false"
set ea_moderationNotification "https://discordapp.com/api/webhooks/428893670851215370/NFJhJJw4QIx6G_bhGkCMrI-Y95tu7ldLwlvGqLETqY-tyo0liZxcf5S40jTJOr2WHTi8"   # this can be either "false" or a discord webhook address, this will send a discord message if an admin takes actions against a player  ( such as banning and kicking )

# change this


# a comma-separated list of tags for your server
# for example: sets tags "drifting, cars, racing" or sets tags "roleplay, military, tanks"
#sets tags "Police, CRP, Roleplay"

sv_hostname "California State Of Emergency Roleplay Server 2 | Whitelisted | apply on our Discord"

# nested configs!
#exec server_internal.cfg

# loading a server icon (96x96 PNG file)
load_server_icon festisite_nsa_96x96.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
add_ace identifier.steam:110000118e687a9 group.admin

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

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

# license key for server (https://keymaster.fivem.net)
sv_licenseKey "ijbaod8itj0x8nh4b1tx5bwoxct4eihr"

and this is how I am starting it:

cd /d C:\Users\Matthew\Documents\FXserver
c:\Users\Matthew\Documents\FXserver\run.cmd +exec server.cfg

And my other server i made just then looks 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:30121"
endpoint_add_udp "0.0.0.0:30121"

start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start rconlog
start scoreboard
start playernames

sv_scriptHookAllowed 1



# 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 "California State Of Emergency Roleplay Server 3 | apply on our Discord"

# 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

# 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 "0ljl1ho332w7wkb97x5upykrtnxy1gsq"

and How I am starting it:

cd /d C:\Users\Matthew\Documents\server
c:\Users\Matthew\Documents\server\run.cmd +exec server.cfg

#9

That should work. Are you sure that you port-forwarded 30121 and 30120? I can only see and connect to the whitelisted server.


#10

ill start the second one up now
should be up now 202.161.14.187:30121


#11

I can connect to 202.161.14.187:30121


#12

Same but I cannot see your second server, are they both open? You have to have both CMD Prompts open to have both servers running.

Edit: I also highly recommend to remove your RCON Password from your server configs in the above post. That will give anyone access to start and stop resources and kick and ban people from a remote console application…


#13

yeah thanks hehe.

Doesnt really matter about thee Recon passwords I will be changing them everyday though

Just because I had one of my other servers hacked once


#14

No problem. Are both CMD Prompts open? Theoretically, all you would need to do is host it on a new port open that port and register a new server license.


#15

both CMD windows are open, Is there like a way to only use one CMD window like;

cd /d C:\Users\Matthew\Documents\server
c:\Users\Matthew\Documents\server\run.cmd +exec server.cfg

#then

cd /d C:\Users\Matthew\Documents\FXserver
c:\Users\Matthew\Documents\FXserver\run.cmd +exec server.cfg

#16

This is odd. I assume both servers are in different folders? Like I said this should be working and I know both ports are open because I just saw both servers in the server list and the other person could connect. At this point man I am lost.

Edit: They are I just didnt read the directroy.

Edit2: They work! Both servers are showing up in the list. Server 2 and 3.

Edit3: Just refreshed the list and know only Server 2 is showing up.

And…

Edit4: Both are back up.


#17

yeah they come and go from time to time, I was just messing around on server 3 and they all work pretty well


#18

Sweet! Hope the new servers work out!


#19

yeah, thanks
(20chars)


#20

my second server is going online but it keeps saying “failed to handshake” after i installed 2 files and it keeps saying the ping is – and I have tried everything to get it to work!!

but it works with this IP: 127.0.0.1:30121

i dont know whats happening