[python-win32] Find IP address for a UNC path
Tim Roberts
timr at probo.com
Thu Aug 27 19:27:29 CEST 2009
Dave Angel wrote:
> I'd like to be able to figure out the IP address for a Windows XP file
> server (on a local subnet, not across the Internet), based on a
> successfully connected share.
>
> So I know the UNC name of the share, for example
> \\server\sharename\...
>
> (which was enabled by a NET USE to some other share on the same server)
> ...
> The user of this utility will be then doing a Remote Desktop to the
> server, if that helps. We know he has permission, since he was able
> to successfully NET USE to the server. But Remote Desktop doesn't
> seem to permit him to use the server name, only the IP address.
This doesn't help solve your immediate problem, but what this screams
out to me is a configuration issue. It's true that the \\host and the
"ping host" names spaces are different, but as long as you have WINS
running somewhere, WINS talks to DNS so that the namespaces are equivalent.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list