Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005

    Exclamation Need a very special script...

    Hello guys,
    I am in need of a very special script (that I hope to write myself).
    Heres what is has to do...

    It has to find the IP of a specific computer and then write the IP to a webpage.
    First off, what language should the script be in?
    Second, should the script be on the computer, or the webserver?

    I was thinking of something in linux where a crontab runs the script every 2 hours and updates the IP on a web page, since the server doesn't have a static IP.

    Any help would be great,

  2. #2
    Join Date
    Dec 2002
    Quad Cities, Iowa
    The script would have to be on the computer, not the webserver. Since the computers IP may change, the web server would have no clue how to contact the computer to get the updated IP.

    What it seems like you need is 2 things.
    #1 A program on the computer that connects to your website every so often.
    #2 A script that it connects to that will update the webpage that the IP will be stored on.

    The program on the computer could connect to a script that will look somewhat like this

    Where would be the IP of the computer.

    The program for your computer could easily be made by someone familiar with Visual Basic since there is not really much to the program itself.

    Hope this was helpfull!
    Need a new Web Host?
    Become a Host Refugee and receive TRUE 24/7 Support

    cPanel + Fantastico, PHP4 or PHP5 - See our current promotions

  3. #3
    Join Date
    Apr 2005
    Thanks, I was feeling a bit lost.
    I'll try what you reccomended and I'll let you all know how it turns out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts