If you have a workgroup then the user/password must exist on the local computer and you need to prefix the username with the computername.

The TCP/IP Primer shows preferred methods to evaluate whether a specific IPO address is part of a subnet. However, as you have only one subnet, why check this at all?
_________________________
There are two types of vessels, submarines and targets.