FREAK
February 13, 2018, 9:14am
1
Hello guys. I bought a VPS linux with Ubuntu and I have tried to install a server on that but …
here is console : http://prntscr.com/idwzqr
here is folder patch : http://prntscr.com/idwzyc and http://prntscr.com/idx009
here is my server.cfg : http://prntscr.com/idx08d
The problem is that I start the server but I was trying to connect from Direct Connect with ip and port and its not working. https://image.prntscr.com/image/nnB8yAFBQuufa4gG5C1N8g.png
line 3 and 4 of your .cfg
Replace your lines by (if you don’t have multiple interfaces) :
endpoint_add_tcp “0.0.0.0:30120”
endpoint_add_udp “0.0.0.0:30120”
FREAK
February 13, 2018, 3:46pm
4
@Scyar_Gameur @Envious
still not working, I did both of them.
Run on cmd : ps aux
And check any process run on 30120 port
FREAK
February 13, 2018, 3:54pm
6
@Scyar_Gameur
This is what I got after I run the command
I am kinda confused with this but probably you will get something
Let your server running and do it in over ssh connection
(Are you using Putty ?)
wpgn
February 13, 2018, 3:57pm
8
on your Linux server when trying to connect do you close down your console window? before trying to connect? because if you dont have it running in background it will not be running and that is why you can not connect
That’s why I ask if he’s using Putty
dont change this, there is no reason to unless you are running multipal servers off of it.
FREAK
February 13, 2018, 4:02pm
11
@wpgn @Scyar_Gameur
I am using Putty
after I start my server I leave putty on and then try to connect to the server.
I know if I will close putty the server will close.
I tried with screen , leave the server on in screen and the same thing
@Painwithin I modified them and now are exactly like that
How exactly are you trying to run the server? are you using the run.sh? and what folder are to trying to start it within.
FREAK
February 13, 2018, 4:05pm
13
@Painwithin
FX-Server is finally here! Stability updates, increased playercaps, more natives, features, and so much more stuff that still needs to be documented haha! The future is now!
Hello, this is an in-depth and “Noob Friendly” guide on how to install FiveM’s latest FX-Server on a completely fresh Linux installation.
I’m going to assume you know how to SSH / FTP into your server for the entirety of this tutorial.
Please read each step carefully before asking for troubleshooting help <3
Requirement…
I have followed this tutorial step by step so …
scratch that, that dont matter as your server is starting normaly, so it must be some sort of port problem perhaps contact your VPS and see if the port is being used by something else or try a different port.
have you waited atleast 10 minutes to see if the console shows a heart beat?
Did you try to do an other ssh connection and listen on 30120 port ?
FREAK
February 13, 2018, 4:07pm
16
I found it guys, I tried with different port and it was working, ( 28015 port )
So it is a problem of the port 30120, should i do something in putty or should I contact the vps provider ?
contact your VPS i figured it was a port problem.
wpgn
February 13, 2018, 4:08pm
18
you can create a link to a service file that will auto start your fivem server on boot by making following file and doing commands
create a file called fivem.service
and inside that add this
[Service]
Type=simple
User=root
Group=root
RestartSec=30
ExecStart=/bin/bash -c “cd /home/fx-server; sh ./run.sh +exec server.cfg”
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s INT $MAINPID
Restart=always
[Install]
WantedBy=multi-user.target
then place it into following folder
/etc/systemd/system
now in your console type following
service fivem start
systemctl enable fivem.service
then you should be good to go after reboot hope that helps you, also make sure to change the /home/fx-server/ to fit your folder structure