Differentiation and identification of 2 LAN Pc in PHP

Discussion in 'PHP' started by ajay009ajay, Oct 30, 2010.

  1. #1
    Hi,
    I have 4 pc which are connected through the LAN.I am making a PHP program that will differentiate each PC separately and i will keep each pc record.But when i am getting an IP address i am getting same IP for all.I guess i should to retrieve MAC address for all pcs separately, but i don't know how will i fetch MAC address.I am using Linux OS.
    Programing tips will be apperctate.
    Thanks
     
    ajay009ajay, Oct 30, 2010 IP
  2. S1M

    S1M Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    put a persistent cookie on each one
     
    S1M, Oct 31, 2010 IP
  3. leh

    leh Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is the PHP application running on a machine in the same lan?
    I'm guessing it's not since you say you are getting the same ip for all of them.

    If the four client computers are going to access the php app through a browser then you could use ssl client certificates or just simply have each of the pcs access the application with it's own username/password.

    If you don't want to add authentication to the mix you could simply make each pc access the app through it's own url. ex: http://<url to app>/?pc1
     
    leh, Nov 1, 2010 IP