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! Quote 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? Quote 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. Quote 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 Quote 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 Quote 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? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.