Eiolon Posted September 5, 2007 Share Posted September 5, 2007 This is an internal project I am working on. I know that the NetBIOS cannot be routed outside the LAN but it can go through routers and switches so I am hoping this can be accomplished via PHP. Any ways, as the subject says, I'd like to log the name of the computer instead of the IP address if possible. Thanks in advance for your help! Link to comment https://forums.phpfreaks.com/topic/67980-is-it-possible-to-log-the-netbios-name-instead-of-the-ip/ Share on other sites More sharing options...
btherl Posted September 5, 2007 Share Posted September 5, 2007 The netbios name doesn't come along with an http request (which is what php works over). But you may be able to resolve the ip address back to a netbios name from your script, perhaps with an external program. I can't help you with details of which program unfortunately. Are you running windows or linux on the php server? Link to comment https://forums.phpfreaks.com/topic/67980-is-it-possible-to-log-the-netbios-name-instead-of-the-ip/#findComment-341767 Share on other sites More sharing options...
Eiolon Posted September 5, 2007 Author Share Posted September 5, 2007 I am running on a Windows box but using Apache instead of IIS (not sure if that matters). Thanks for the info, though. I've been searching for awhile on how to do this but can't find anyone who has done it yet. Link to comment https://forums.phpfreaks.com/topic/67980-is-it-possible-to-log-the-netbios-name-instead-of-the-ip/#findComment-341770 Share on other sites More sharing options...
darkfreaks Posted September 5, 2007 Share Posted September 5, 2007 http://www.linuxquestions.org/questions/showthread.php?t=426441 Link to comment https://forums.phpfreaks.com/topic/67980-is-it-possible-to-log-the-netbios-name-instead-of-the-ip/#findComment-341773 Share on other sites More sharing options...
cooldude832 Posted September 5, 2007 Share Posted September 5, 2007 http://us2.php.net/manual/en/ref.geoip.php It cost money but it gets the job done beyond what doing a cURL or fopen on a samsapde site can get you. Most sites that use that Meet local singles in your city thing get your city off geoip or some derivation of it. I think it can retrieve netbios info also Link to comment https://forums.phpfreaks.com/topic/67980-is-it-possible-to-log-the-netbios-name-instead-of-the-ip/#findComment-341785 Share on other sites More sharing options...
btherl Posted September 5, 2007 Share Posted September 5, 2007 How on earth would they get netbios info to put in a central database? Link to comment https://forums.phpfreaks.com/topic/67980-is-it-possible-to-log-the-netbios-name-instead-of-the-ip/#findComment-341795 Share on other sites More sharing options...
cooldude832 Posted September 5, 2007 Share Posted September 5, 2007 Because some ISP require NetBIOS of systems to be aviable to them, which you might be able to do via 2 part system, but i'd have to say that odds are you can't get it unless you had some sort of script on the computers that forced them to send the info via post to your script over a LAN. On a wLAN/Internet system its be nearly impossible. Link to comment https://forums.phpfreaks.com/topic/67980-is-it-possible-to-log-the-netbios-name-instead-of-the-ip/#findComment-341801 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.