Ik heb geen idee hoe het delen van een scanner verloopt,
maar voor de poorten die open moeten heb ik dit gevonden:
The SMB (Server Message Block) protocol is used among other things for file sharing in Windows NT/2000/XP. In Windows NT it ran on top of NetBT (NetBIOS over TCP/IP), which used the famous ports 137, 138 (UDP) and 139 (TCP). In Windows 2000/XP/2003, Microsoft added the possibility to run SMB directly over TCP/IP, without the extra layer of NetBT. For this they use TCP port 445.
Ik weet nu niet vanbuiten of het poort 445 is, of die 137, 138 (UDP) and 139 (TCP) voor samba, maar dat moet je maar eens testen.
Ik vermoed dat het poort 445 zal zijn.