SA-MP Forums Archive
Server running on wrong port, can't access localhost: - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server running on wrong port, can't access localhost: (/showthread.php?tid=524345)



Server running on wrong port, can't access localhost: - Twizted - 06.07.2014

I've recently removed my server from frag.gs hosting as I'm looking to upgrade it to a better, offered host. Regardless, it seems to be running on the frag.gs port, even though there's nothing in regards of it in the server.cfg file. This is printed to the console as the samp-server.exe runs:

Code:
Started server on port: 8192, with maxplayers: 2 lanmode is ON.
And this is my server configuration:

Code:
echo Executing Server Config...
lanmode 1
maxplayers 2
rcon_password changeme11
hostname San Andreas Online
gamemode0 saonline 1
filterscripts
plugins crashdetect whirlpool sscanf streamer
announce 0
query 1
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
gamemodetext SAOnline v1.0.0
mapname San Andreas
I've tried to access my localhost via SA:MP (localhost:7777) with the samp-server.exe running and the server shows offline for me. What should I do?


Re: Server running on wrong port, can't access localhost: - Dziugsas - 06.07.2014

Turn off lan mode and type (port 7777) to server.cfg


Re: Server running on wrong port, can't access localhost: - Twizted - 06.07.2014

Oh, thank you very much.


Re: Server running on wrong port, can't access localhost: - Crayder - 06.07.2014

Not typing a port in server.cfg sets a random one for you, remember not to forget that line...


Re: Server running on wrong port, can't access localhost: - edyun - 10.04.2018

Actually not, the default port for SA:MP is not 7777 it is actually 8192, but nobody uses it


Re: Server running on wrong port, can't access localhost: - Gameluner - 10.04.2018

Yeah, also when you add a new server to your favorites list without port, it adds 7777, so 8192 isn't used.