<HTML>
<HEAD>
<TITLE>RISCOS Samba Server</TITLE>
</HEAD>
<BODY bgcolor=white text=black LINK="#0000FF" VLINK="#8700BA" ALINK="#FF0000">
<H1 ALIGN=centre><IMG SRC="images/logo.jpg"> RISCOS Samba Server <IMG SRC="images/logo.jpg"></H1>
<P>
<A HREF="samba_11.htm"><IMG SRC="images/left.gif" ALIGH=LEFT BORDER=0></A> <A HREF="SAMBA.htm"><IMG SRC="images/cont.jpg" ALIGH=CENTRE BORDER=0></A> <A HREF="samba_A.htm" ALIGN=right><IMG SRC="images/right.gif"  ALIGN=RIGHT BORDER=0></A>  
<HR><H2><H2><A NAME="nameserver">13 Netbios Namserver</A></H2><P>
<H3><A NAME="namserver1">13.1 Enabling</A></H3><P>
!smbserver includes a port of nmbd, the Samba Netbios Nameserver. This enables RISCOS machines to appear in Network Neighbourhood windows. The Netbios Nameserver is integrated into the !smbserver application. (I had intended to release it as a module but its MTBF is not acceptable to release in module form at the moment. I think the problem is running out of SVC stack but I'm still working on it!)<P> 
To enable and disable the nameserver check the "nameserver enabled" option in the <A HREF="samba_03.htm#confglobals">Global Variables</A> configuration window.<P>
<H3><A NAME="neigh1">13.2 Network Neighbourhood Window</A></H3><P>
When the nameserver is enabled RISCOS machines appear in the Network Neighbourhood.<P>
<IMG SRC="images/neigh.jpg" ALIGN=centre>
<P>
<H3><A NAME="neighfile">13.3 Files Used by Nameserver</A></H3><P>
The nameserver uses the following files:<P>
<B>&lt;Samba$dir>.Resources.smb/conf</B><BR>
The nameserver uses this file along with the rest of the !smbserver application.<P>
<B>&lt;InetDBase$Path>hosts</B><BR>
The nameserver reads the hosts file when it is loaded.<P>
<B>&lt;Samba$dir>.Resources.browse/dat</B><BR>
The nameserver's current browse list. This is written every so often and usually will only contain the name of the machine !smbserver is running on and the Domain Master.<P>
<B>&lt;Samba$dir>.Resources.nmbdinfo</B><BR>
Written when the "Nmdb Debug" menu option is selected form the iconbar menu.
<H3><A NAME="neightrouble">13.4 Troubleshooting</A></H3><P>
<H4><A NAME="neight1">13.4.1 RiscOs Machine Does Not Appear in Network Neighbourhood</A></H3><P>
Check that the netmask your RISCOS machine is using is the same as the Windows machine. Select the "Nmbd Debug" option from the iconbarmenu. Look at the file &lt;Samba$dir>.Resources.nmbdinfo. The top of this shows the broadcast address (bcast) which the nameserver is using. If this is different to the one your Windows machine is using then the RISCOS machine will not appear in the Neighbourhood Network. The workgroup name must also be the same.<P>
To see what the netmask on the Windows machine is goto ControlPanel->Network. Click on the ethernet adaptor to get the TCP/IP properties window. The Subnet mask should be the same as the one in &lt;Samba$dir>.Resources.nmbdinfo. If they are different you can force the nameserver to use a particular netmask by editing the interfaces parameter in !smbserver's global config window. The format of the parameter looks like this:<P>
<PRE>1.2.3.4/255.255.255.0</PRE><P>
1.2.3.4 should be the IP address of your RISCOS machine and 255.255.255.0 is the netmask and must be the same as the subnet mask in the Windows TCP/IP properties window. After saving the parameters quit and restart !smbserver.<P>
<H4><A NAME="neight2">13.4.2 Omniclient reports that the Internet Stack is not present</A></H3><P>
If you load !smbserver followed by !Omniclient, !Omniclient will give an error "Internet module is not present or not working". To fix this load !smbserver <B>after</B> !Omniclient.<P>
The nameserver uses a well known port 137. !Omniclient binds to it too. I'm not convinced it does anthing useful with it, although if it is using it probably Windows machines should appear in the FS list only if they are switched on. !smbserver steals the port from !omniclient in order to bind to it. This is probably a bad thing to do but is the best I could come up with. !smbserver only binds to port 137 if the nameserver is enabled.
<HR>
<A HREF="samba_11.htm"><IMG SRC="images/left.gif" ALIGH=LEFT BORDER=0></A> <A HREF="SAMBA.htm"><IMG SRC="images/cont.jpg" ALIGH=CENTRE BORDER=0></A> <A HREF="samba_A.htm" ALIGN=right><IMG SRC="images/right.gif"  ALIGN=RIGHT BORDER=0></A>  
<P>
<I>RISCOS Samba Server</I>
</BODY>
</HTML>
