want ip code script

Discussion in 'PHP' started by phpdotnet, Jun 19, 2008.

  1. #1
    i am searching for php code for know machine physical ip in network
     
    phpdotnet, Jun 19, 2008 IP
  2. yourwish

    yourwish Active Member

    Messages:
    43
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    98
    #2
    $your_ip = $_SERVER['REMOTE_ADDR'];

    Enjoy :)
     
    yourwish, Jun 19, 2008 IP
  3. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #3
    If you mean their network IP i.e one that begins with 168.192... you can't get it unless the browser (and very few do) sends it as a header.

    Dan
     
    Danltn, Jun 19, 2008 IP