libsmbclient and IP numbers
Richard Sharpe
sharpe at ns.aus.com
Fri Nov 16 04:37:02 GMT 2001
Tom Jansen wrote:
> Hi,
>
>
>>>>>smbc_opendir("smb://<insert IP here>/); it fails! Is this not supported?
>>>>>
>>>>It works perfectly here
>>>>
> This is not true. My wrong. read on please.
>
>
>>My guess is that the IP will work against a Samba box, but not against
>>NT. Can you verify. With NT, you need a name for the NetBIOS session
>>request. smbd doesn't actually require this.
>>
As Gerry suspected, libsmbclient puts in a called NetBIOS name of the IP address you are connecting to.
smbd does not care about the called NetBIOS name, while Windows does.
Most Windows systems these days will handle *SMBSERVER, and there is a workaround for those that don't.
I will work on it ...
--
Richard Sharpe, rsharpe at ns.aus.com, LPIC-1
www.samba.org, www.ethereal.com, SAMS Teach Yourself Samba
in 24 Hours, Special Edition, Using Samba
More information about the samba-technical
mailing list