hi i want to have a script where it sends a request to my server and if it equals true than it will say its online if not it says its offline so i don't have to manually change it.this is what im assuming it would look like.

i would greatly appreciate it if anyone would know how to do it if it helps any it might be easier to make it work like www.canyouseeme.org does and just check the port to see if it responds. thanks in advanced.

i guess it kind of hard fo rme to explain maybe it might be better like this, i want it to be able to tell me whether or not the server is online without me having to change it manually. but i also want it to do this if it is online

like where you actually play the game? because the server is off right now and i cant turn it on, i was thinking that there was a way to check if something is running on my computer and a specific port like it does on www.canyouseeme.org

im kind of confused of what your asking, sorry if im not understanding let me try again. you need a website that the server is running on correct? if so it doesnt run on a website i run it off my pc or a vps (virtual private server). Im just not understand what you mean when you say you need the website.

extra information if you need it, not sure if its going to help much.

Spoiler:

the game is a rsps so when you login in you put in your credentials and click play now which then trys to log you in and it will allow you into the world if the server is online otherwise it will say that it is offline on the client part.

EDIT: thanks so much for helping me rideem i really appreciate your help so far

In order for a server to contact the internet or transfer any information over the internet, it must itself be connected to the internet and have an address. Whether it is a designated domain or simply an IP address, it must be online with an address to point to it.

A server can not equal 'true', that's like saying a computer can equal '23', its just a random statement.

You must write a script in order to reply to the HTTP request with a response. That response could simply say 'true' if you wanted.

hi i want to have a script where it sends a request to my server and it will determine if it is online or not - if it is online it will show it on my homepage if not it says its offline so i don't have to manually change it.