[HELP] I need to "get" a public IP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nicoh
    Forum Member
    • May 2007
    • 52

    [HELP] I need to "get" a public IP

    Hei, Im wanna make a new soft that resets yout public IP.

    I had make it but I need to show in the soft the public IP of the guy thats is running the software..

    I wanna know if exist any function to GET that IP..

    Thanks, and apologize for my bad English
  • FoxLeader
    Forum Member
    • Nov 2006
    • 432

    #2
    It's written in the registry. Search in Google (your best friend!) with something like "registry ip location" or something like this.

    Comment

    • nicoh
      Forum Member
      • May 2007
      • 52

      #3
      Thanks, but what can I do it in AMS??

      Comment

      • santral
        Forum Member
        • Dec 2007
        • 59

        #4
        you will get ip from regedit ...
        ( HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\Interfaces\{GUID interface} )

        then use Registry code (Registry.GetValue)

        Comment

        • nicoh
          Forum Member
          • May 2007
          • 52

          #5
          Hey, I try it but it doesnt work.

          The IP that I need is the PUBLIC IP that is provided by the ISP..

          Thanks
          Last edited by nicoh; 12-28-2007, 11:00 AM.

          Comment

          • longedge
            Indigo Rose Customer
            • Aug 2003
            • 2498

            #6
            The only way I know to do this is by using your web space. If you put a web object on your AMS page which points to your URL, it will display the IP from which the http request is originating. Just a single line of php code is all that's needed

            Code:
            <?php
            echo "Your IP Address is: " . $_SERVER['REMOTE_ADDR'];
            ?>
            It wouldn't be much use if 'anonymizer' or proxy servers were being used.

            Comment

            • nicoh
              Forum Member
              • May 2007
              • 52

              #7
              Thanks

              10chars

              Comment

              • nicoh
                Forum Member
                • May 2007
                • 52

                #8
                Hey it works great

                Thank you very much

                Comment

                Working...
                X