getting mac address of client machines

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    #16
    so we cannot generally find the MAC id's of a machine connected to net as one of the problems will be permission!

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #17
      do you get the same result if you try
      Code:
      $mac = `arp -a | grep $ip`;
      ?

      Comment

      • pradeepjain
        Contributor
        • Jul 2007
        • 563

        #18
        Originally posted by Dormilich
        do you get the same result if you try
        Code:
        $mac = `arp -a | grep $ip`;
        ?
        yeah!!!permissi on error!

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #19
          then you can’t do anything about it (although the concept is right)

          Comment

          • pradeepjain
            Contributor
            • Jul 2007
            • 563

            #20
            is there any parameter by which we can recognize a system over internet ?

            Comment

            • Dormilich
              Recognized Expert Expert
              • Aug 2008
              • 8694

              #21
              recognize in what kind of way?

              Comment

              • pradeepjain
                Contributor
                • Jul 2007
                • 563

                #22
                like suppose if that system is accessing ma website its should be identified by unique thing specific to that comp! bcos we need to lock our website for a few ips' of outside internet!

                Comment

                • Dormilich
                  Recognized Expert Expert
                  • Aug 2008
                  • 8694

                  #23
                  what is a "comp", company, computer, competitor?

                  do you mean allow certain IPs or exclude certain IPs?

                  Comment

                  • pradeepjain
                    Contributor
                    • Jul 2007
                    • 563

                    #24
                    sorry for shortcuts..i mean to say a computer /pc

                    Comment

                    • Dormilich
                      Recognized Expert Expert
                      • Aug 2008
                      • 8694

                      #25
                      is there anything specific about allowed/denied computers/clients?

                      Comment

                      • pradeepjain
                        Contributor
                        • Jul 2007
                        • 563

                        #26
                        its like the website will be accessed at only 2 places say 2 hospitals so need to lock them to those places!

                        Comment

                        • pradeepjain
                          Contributor
                          • Jul 2007
                          • 563

                          #27
                          IS there no solution for this problem . like i am using all linux machines . cant i uniquely identify the system accessing it .something like system ID / CPU ID.

                          Comment

                          • Dormilich
                            Recognized Expert Expert
                            • Aug 2008
                            • 8694

                            #28
                            why should the system ID / CPU ID be submitted? you can’t read what’s not provided.

                            if those computers have static IPs, you can use those.

                            Comment

                            • pradeepjain
                              Contributor
                              • Jul 2007
                              • 563

                              #29
                              nope !! but they use laptops for accessing the site. so they dont have a static IP's .

                              Comment

                              • missinglink

                                #30
                                This functionality will work on a local network, but not the internet as the MAC is hidden by the clients router.

                                In short, the MAC is not present in the IP packet header.

                                You can retrieve the client IP address via <?php echo $_SERVER['REMOTE_ADDR']; ?> however this is not 100% accurate because of IP address spoofing.

                                Comment

                                Working...