So far this is my code on how to redirect the user to the local server.
but what if the ip address of the server changed?
My idea now is that i need to get the list of all IPs in the network and check every IP if the "/gcc" exist ?
so it looks like this "http://scanned_IP/gcc"? if exist redirect to that "http://scanned_IP/gcc", else continue scanning. .
How to do that in javascript?
I'm using only html with javascript.
Any replies are appreciated. :D
Code:
function connectToServer() {
window.location="http://192.168.1.154/gcc";
}
window.onload = connectToServer;
My idea now is that i need to get the list of all IPs in the network and check every IP if the "/gcc" exist ?
so it looks like this "http://scanned_IP/gcc"? if exist redirect to that "http://scanned_IP/gcc", else continue scanning. .
How to do that in javascript?
I'm using only html with javascript.
Any replies are appreciated. :D
Comment