I have a HTML page on server. When the page runs on a local system from server, can I somehow get the server IP from which the page is running?
Actually I have two HTML pages A (coded in HTML) & B (coded in flex) saved on server at same location. Through page A I am redirecting to page B. So for redirection I need to specify the url on which page B is located. I dont want to hardcode this URL because I have run these two pages on several servers, and each time I run on diff server I have to change the url.
So is there any possible by which I can find out on which server page A is running so that dynamically I can form the url for page B?
How do you implement the redirect?
The simplest solution would not require you to find that information at all: simply use a relative redirect.
If A is located at
http://myserver.com/dir/a.htmland B is located athttp://myserver.com/dir/b.html, then simply redirect tob.htmlin A and you should be fine.