Ip Lookup

Discussion in 'Software' started by juku, Feb 1, 2007.

  1. juku

    juku Private E-2

    I am kinda stumped, looking for software with what I could automatically to look up the ip.
    The thing is, I am triing to get a game server working, but the comp the server would run on has a dynamic ip, and it would be impossible for me to go and check the number every day. So does anyone have any experience how to make this process automatic?
    I am thinking of puting shortcut to whtasmyip.com into the task manager, and I can make comp to automatically upload a file, the problem s inbetween, how could I copy text automated?
     
  2. Mada_Milty

    Mada_Milty MajorGeek

    Is your server behind a router?
     
  3. juku

    juku Private E-2

    Yes, my server is behind a router, but I can open ports, if neccesary, another thing I forgot to mention, the comp will not be online 24/7 I have a setup made that the server starts if the computer is on in a specific time, so the solution should be able to run from task manager.
     
  4. Mada_Milty

    Mada_Milty MajorGeek

    Do you know what your host name is?

    If not, visit www.showmemyip.com. It will show you this on the bottom.

    Now, you can ping your hostname at any time, and it should resolve your public IP.

    Setting up a batch file would be easy:

    Code:
    ping [I]hostname[/I] > c:\pinglog.txt
    Copying the above into notepad, replacing hostname with your ACTUAL hostname, and saving as filename.bat would create a program for you that finds your public IP, and dumps it to a text file (in this case, c:\pinglog.txt). You can then schedule this .BAT file to run automatically.
     
  5. Mada_Milty

    Mada_Milty MajorGeek

    Actually, you might want to include a switch to set the timeout. This way, you don't have to wait for replies quite so long, improving the performance of your script:

    Code:
    ping -w 0001 [I]hostname[/I] > c:\pinglog.txt
     
  6. juku

    juku Private E-2

    A bit confused :p
    according to showmemyip.com my hostname is something like
    255-255-255-255-dsl.prn.estpak.ee (I dont want to show my actual ip)

    now I can not ping that, If I try to ping with whole line it says request timed out(which makes sense, I can never ping my public aadress), if I only try to ping the prn.estpak.ee (dsl.prn.estpak.ee) the result could not find the host....
     
  7. Mada_Milty

    Mada_Milty MajorGeek

    Yes, but do the ping statistics include your IP address? It should! We're not concerned whether we get replies; that's why I suggested modifying the timeout... you don't have to wait so long for the request to time out.
     
  8. juku

    juku Private E-2

    if I ping prn.estpak.ee Ping request could not find host dsl.prn.estpak.ee. Please check the name and try again.

    If I ping the ip.dsl.prn.estpak.ee in wich case I know my ip, it is:

    Pinging 255-255-255-255-dsl.prn.estpak.ee [255.255.255.255] with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Ping statistics for 255.255.255.255:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

    And quite logically it shows my current ip, like ping should, shows the ip I am pinging, but now if my ip changews the first line is not correct then, is it, my hostname includes my ip, so my hostname changes too, and I need to modify the ping hostname script, dont I?
    anyway, I will test it tomorrow, when I have a new ip....maybe your right and it will work.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds