Sending my server IP to a web page.

jonjacob

New member
Joined
Sep 3, 2003
Messages
4
Hey guys,

I am new to .net scene and would like to know if it is possible to grab the IP of my local server and send it to a hosted website say every hour or 2. This way I can keep track of my server whenever my ISP changes the IP for my cable modem.

If so can someone please get me started.
Thanks in advance for your help.
 
Hey Jorge,

Thanks for your reply , I already have 3 websites on one host , and I have a Domain setup. What I need is a program that will grab my IP of the DC and send it to one of my own web pages that I already have setup on a hosted site.

Thanks,
 
If you have cgi email access on your website you could always send the ip as well as other info via your cgi email script an example would be:

Code:
http://www.yoursite.com/cgi-sys/FormMail.cgi?Recipient=you@yoursite.com&Subject=MyIpAddress&Description=AnyDescriptionHere&env_report=REMOTE_HOST,HTTP_USER_AGENT

The (REMOTE_HOST,HTTP_USER_AGENT) will let you know your current IP Address.

That it how I would do it myself...Hope that helps.
 
Last edited by a moderator:
Back
Top