Want to know if city server is up?

Afr0

Well-Known Member
The city server now dynamically generates a webpage with information statistics at this address.
If you can access the website, it means the server is up! :)
Also, you can see how many users are online in case you want to chat!
 
PS: If there are any web experts out there, please let me know how safe it is to keep port 8888 open. Should I pick another one?
 
There are no risks keeping any ports open, ever. The risk lies in any vulnerabilities the server software has.

Web servers normally run on port 80, and 8080 is usually the backup port (but is not normally accessible via browser without adding :8080)
 
My client disconnected me from city server after I was some time online, or i think so cause I was checking players currently online page. And it showed 0, but when reopened client and opened city view again and checked that page it worked again. I know that server wasn't restarted cause of that time.
 
Can you add "Access-Control-Allow-Origin:*" to the cityserver's HTTP header, so that I can access the server status with javascript and put it on the forum header?
 
Sweet! This will make life easier.
Can you add "Access-Control-Allow-Origin:*" to the cityserver's HTTP header, so that I can access the server status with javascript and put it on the forum header?
Unless you're still working on the script, I'm getting the status isn't changing:
UEuEvB3.png
 
Sweet! This will make life easier.

Unless you're still working on the script, I'm getting the status isn't changing:
UEuEvB3.png
Why do you think I asked that question? It is completely impossible to XMLHttpRequest the page without that property being present in the HTTP header. It will work when the header is present.
 
Hey, Just wondering why the avatar doesn't appear where it should be in map view? (If you click it, it should open a SimPage.)
 
Why do you think I asked that question? It is completely impossible to XMLHttpRequest the page without that property being present in the HTTP header. It will work when the header is present.
It was there when I got one. I thought it was a bug. Sue me.
 
Thanks, I'll do that in a couple of hours once I'm home.
liinor: Yeah, I think the server will sometimes boot you off if you go too long without sending any data. I need to see if TCP has a keepalive option.

That's what TSO does when people are AFK for more than 15 minutes. I think...
 
Super nice! It currently assumes a certain order, so of the order changes the result could get fucked up. You should probably wrap the info in spans like

<span id="usersonline">2</span> users online

in future, with things like the users online, city name, lots active (soon...)
 
Hmmm, yeah.
Right now I have a few things on my list, the first one of which is to fix the message GUID issue.
Then I want to have a ping/pong packet sent back and forth from city to client. But I might not need it, it'd be enough to implement the time of day packet for the connection to stay alive.
 
Back
Top