简体   繁体   中英

How to get the computer name from ip Address?

How to get the computer name from IP Address using php.

Concept:

How to restrict the user with using the system information.,i don't want the IP Address with that restriction.,because it doesn't use for me.,the IP Address are not static everyday it'll changed so i want a system name or something system related.,my basic idea is i want to restrict the user with the access of only one system.,not some other.,(1 user - 1 system) with his/her login details...so this is the concept for my project...

gethostbyaddr($TheIpAddress);

will do the trick. http://php.net/gethostbyaddr

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM