Getting server IP no matter where the webpage is served up

QuemeSide

New Member
Is it possible to always pull the Server IP (where the web page is being served on) for its external IP (79.52.xxx.xxx) and not internal (192.1368.xx.xxx)?The code i currently have works only on my home network (using classic ASP):\[code\]IPAddress = Request.ServerVariables("REMOTE_ADDR")\[/code\]That does return the correct IP of my external IP address but if i am out of my network (other computers/cell phones that are not hooked to my network) then they come up with that external IP of that network which, in turn, does not see my cameras that are hooked to my network IP.Is there another way to get the external IP address no matter where the web page is served up? I can either use classic asp or asp.net to accomplish this.
 
Back
Top