Viewing shares by IP address

Richard Sharpe root at ns.aus.com
Sun Oct 20 11:20:00 GMT 2002


On Sat, 19 Oct 2002, BoresExpress wrote:

> To view share list for some workstation I use the following code:
> 
>             int hDir=smbc_opendir("smb://WORK-PC/")
> 
> 
> 
>             smbc_dirent *pDirEnt=NULL;
> 
>             while ((pDirEnt=smbc_readdir(hDir)) != NULL)
> 
>             {
> 
>                         //.
> 
>             }
> 
> 
> 
> But when I try the same code with following samba-URL "smb://192.168.1.2/" I
> became an error "No such file or directory". What should I do to view shares
> of a remote workstation when I know only IP address?
> 

Yes, looks like a bug. I can guess where the bug is, but can't fix it yet.
 
Regards
-------
rsharpe at ns.aus.com, www.richardsharpe.com,
sharpe at samba.org, sharpe at ethereal.com




More information about the samba-technical mailing list