09-06-2025, 07:52 AM
Hello,
I have been having this issue where I cannot connect to my TF2 server on 127.0.0.1:27015 despite it being on port 27015. It only works via public IP and LAN but not on localhost. The server is on x86_64 Void Linux.
Shell Script:
#!/bin/sh
cd ~/hlserver/tf2 || exit 1
exec ./srcds_run_64 -debug -console -game tf -autoupdate -steam_dir ~/hlserver/ -steamcmd_script ~/hlserver/tf2_ds.txt +sv_pure 1 +randommap +maxplayers 24 +sv_setsteamaccount (Imagine token here)
Currently only ports 27015 UDP and TCP are open. One theory I have been told is that TF2 uses the bind(2) syscall improperly so I can't join 127.0.0.1 because of a bug. Someone please help!
I have been having this issue where I cannot connect to my TF2 server on 127.0.0.1:27015 despite it being on port 27015. It only works via public IP and LAN but not on localhost. The server is on x86_64 Void Linux.
Shell Script:
#!/bin/sh
cd ~/hlserver/tf2 || exit 1
exec ./srcds_run_64 -debug -console -game tf -autoupdate -steam_dir ~/hlserver/ -steamcmd_script ~/hlserver/tf2_ds.txt +sv_pure 1 +randommap +maxplayers 24 +sv_setsteamaccount (Imagine token here)
Currently only ports 27015 UDP and TCP are open. One theory I have been told is that TF2 uses the bind(2) syscall improperly so I can't join 127.0.0.1 because of a bug. Someone please help!