Raised This Month: $51 Target: $400
 12% 

hlstats deamon port


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zo6zo6
Member
Join Date: Feb 2018
Old 01-11-2020 , 13:45   hlstats deamon port
Reply With Quote #1

i am attempting to host the daemon in a new vps and i have only a limited number of ports available so im trying to start the daemon on port 1272. i edited run_hlstats and changed the port, i also changed the port in hlstats config and i can see my daemon running at port 1272. however my hlstats website cannot communicate. what am i doing wrong? i would also like to know what protocol is been used for communication between hlstats website and daemon (i am suspecting a port forward issue, cause i forwarded port 1272 TCP and it might be a different protocol)
this is the result of trying
Quote:
HLstatsX: CE Daemon Control
Sending Command to HLstatsX: CE Daemon at 176.9.xx.xx:1272 — 50 bytes OK
Waiting for Backend Answer...recieving 0 bytes in 0 packets...OK
No packets received — check if backend dead or not listening on 176.9.xx.xx:1272
Closing connection to backend...OK
Thanks

Last edited by zo6zo6; 01-11-2020 at 13:51.
zo6zo6 is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 01-11-2020 , 14:22   Re: hlstats deamon port
Reply With Quote #2

Hi,
just change the port in hlstats.conf and then check logs (don't modify run_hlstats ...).

PHP Code:
UDPOpening UDP listen socket on port XXXX ... ok 
Website only "renders" data from MySQL database, so it doesn't communicate directly with the daemon (only for reload command).

So allow UDP/TCP port XXXX in your firewall for certain IP addresses (eg. gameservers and IP of your webhosting).

PHP Code:
             WEB CONTROL
 
. . . . . . . . . . . . . . . . . . . 
 .                                   . 
WEB - - - - - - MySQL - - - - - - DAEMON - - - - - - SERVER
       DB                DB         LOG ADDRESS 
RCON 
HTTP/HTTPS: 80/443(TCP)
MySQL: 3306(TCP)
Daemon: 27500(UDP)
__________________

Last edited by NomisCZ; 01-11-2020 at 14:28.
NomisCZ is offline
zo6zo6
Member
Join Date: Feb 2018
Old 01-11-2020 , 14:52   Re: hlstats deamon port
Reply With Quote #3

Quote:
Originally Posted by NomisCZ View Post
Hi,
just change the port in hlstats.conf and then check logs (don't modify run_hlstats ...).

PHP Code:
UDPOpening UDP listen socket on port XXXX ... ok 
Website only "renders" data from MySQL database, so it doesn't communicate directly with the daemon (only for reload command).

So allow UDP/TCP port XXXX in your firewall for certain IP addresses (eg. gameservers and IP of your webhosting).

PHP Code:
             WEB CONTROL
 
. . . . . . . . . . . . . . . . . . . 
 .                                   . 
WEB - - - - - - MySQL - - - - - - DAEMON - - - - - - SERVER
       DB                DB         LOG ADDRESS 
RCON 
HTTP/HTTPS: 80/443(TCP)
MySQL: 3306(TCP)
Daemon: 27500(UDP)
if i modify the port only on hlstats config then the daemon starts at 27500 and ignores the port i have set to hlstats config.
so the port is udp and that my main problem here. i couldnt run the reload command from the website because of the tcp forward instead of udp
zo6zo6 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode