how ban i get the internet ip

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • lnd
    Indigo Rose Customer
    • Oct 2005
    • 631

    how ban i get the internet ip

    i try to get the internet ip but i get the network ip

    result = System.GetLANInfo();
    resultip = Dialog.Message("Notice", result.IP, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

    i work whit a rutter how i get the real internet ip???
  • longedge
    Indigo Rose Customer
    • Aug 2003
    • 2496

    #2
    I keep an html page on my webspace with the following code in it which just returns the ip address of where the request came from -
    PHP Code:
    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta **********="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    .style1 {font-size: large}
    -->
    </style>
    </head>
    <body>
    <div align="center">
      <h2 class="style1">
        <?php
    echo $_SERVER['REMOTE_ADDR'];
    ?>
      </h2>
    </div>
    </body>
    </html>

    Comment

    • ShadowUK
      No longer a forum member
      • Oct 2007
      • 1321

      #3
      ip.php
      PHP Code:
      <?php
      echo $_SERVER['REMOTE_ADDR'];
      ?>
      Lua
      Code:
      remoteip = HTTP.Submit("yourhost.com/ip.php", some other arguments);

      Comment

      • RizlaUK
        Indigo Rose Customer
        • May 2006
        • 5478

        #4
        i was going to say use php, but its not always that simple

        there is a way to do this localy, but i cant remember how and i cant find the post


        i think (but im not sure), that you can use ipconfig to write a text file of the users info, then extract the needed info from the text file, i'll look some for that example...
        Embrace change in your life, you never know, it could all work out for the best

        Comment

        • ShadowUK
          No longer a forum member
          • Oct 2007
          • 1321

          #5
          Originally posted by RizlaUK View Post
          i was going to say use php, but its not always that simple

          there is a way to do this localy, but i cant remember how and i cant find the post


          i think (but im not sure), that you can use ipconfig to write a text file of the users info, then extract the needed info from the text file, i'll look some for that example...
          IPConfig only gets local, PHP gets remote.

          Comment

          • RizlaUK
            Indigo Rose Customer
            • May 2006
            • 5478

            #6
            like i said, im not sure, i know it can be done localy cos iv seen it done.....but cant remember what system resource was used (IPConfig was off the top of my head)
            Embrace change in your life, you never know, it could all work out for the best

            Comment

            • lnd
              Indigo Rose Customer
              • Oct 2005
              • 631

              #7
              thank you very much

              thank you very much

              Comment

              • rexzooly
                No longer a forum member
                • Jul 2007
                • 1512

                #8
                You would have to call your Modems root to get its Online IP the best and most salf way would be PHP or another server side lang

                Comment

                Working...
                X