Jump to content

Is it possible to log the NetBIOS name instead of the IP?


Recommended Posts

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!

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?

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

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.