DHCP server

Discussion in 'PHP' started by Tweaker, May 16, 2006.

  1. #1
    Hi,
    I have a little problem... I'm working on a poll sistem into a LAN. Computers are connected through a DHCP server. Now, how do i get users IP's. With $_SERVER['REMOTE_ADDR'] a have same IP for all users...
    Need help! Thanx...
     
    Tweaker, May 16, 2006 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Sometimes the DHCP server will add the local IP address for the computer to the http request header.
     
    digitalpoint, May 16, 2006 IP
  3. Tweaker

    Tweaker Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok, you have any ideea when your "sometimes" it may happen?
     
    Tweaker, May 17, 2006 IP
  4. forkqueue

    forkqueue Guest

    Messages:
    401
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I assume what you mean is that all the users are behind NAT, and so all present as the same IP address. There's nothing you can do to avoid this, so you might want to look at another way of tracking individual users - using a cookie would probably be the best plan.
     
    forkqueue, May 17, 2006 IP