Jump to content

Recommended Posts

Posted

I am having an issue that I have not been able to find a solution to,  but could possibly be remedied by a script to monitor a connection status. 

My internet router is set to automatically restart daily, but every time it does, my rust server fails to reconnect to steam servers. When this happens my players aren't able to connect and they get a steam auth error. Restarting the server fixes this,  but I cannot always be there to manually restart my server every time my router restarts and whenever my internet randomly goes down and comes back up. 

Is there any way possible to have a script that checks for the steam server connection and, if fails, either reconnect or automatically restarts the server?

Thanks in advance!

 

Posted

Hi, when a player attempts to connect to your server are you getting any information about the player attempting to connect in your logs before/when it disconnects them? I assume you get the authentication denial after and disconnect the steam user after the Steam authentication fails?

 

Could you paste a log entry that occurs when a player connects during this time? I think we could possibly use OnClientAuth() or CanClientLogin() to detect the issue and issue the server reboot. For the server reboot, I don't know if there's a better alternative but you could issue the restart command when the issue is detected which will restart the server in 5 minutes with a warning in chat. You could also shutdown the server immediately and restart it if it goes down with an external script.

Posted
21 hours ago, Tater said:

I am having an issue that I have not been able to find a solution to,  but could possibly be remedied by a script to monitor a connection status. 

My internet router is set to automatically restart daily, but every time it does, my rust server fails to reconnect to steam servers. When this happens my players aren't able to connect and they get a steam auth error. Restarting the server fixes this,  but I cannot always be there to manually restart my server every time my router restarts and whenever my internet randomly goes down and comes back up. 

Is there any way possible to have a script that checks for the steam server connection and, if fails, either reconnect or automatically restarts the server?

Thanks in advance!

 

So as i understood you are running a dedicated server at home for public use? If so just write a python script ( use ChatGPT or ask someone) and check the internet connection on your server then if disconnected shutdown the rust server via executing a rust_stop.bat and start it again via a .bat if the internet connection is back alive. The script needs to constantly check for internet connect every x second and  you need to put the script in a sort of autostart mode if your hole server has a downtime so the script starts auto automatically if the server reboots. Should be very simple to set up 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

118.9k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.