Subject Re: [ib-support] Re: win98 connections
Author Woody
From: "Ivan Prenosil" <prenosil@...>
> This will not _guarantee_ success either, because IB client
> always use GetHostByName() to resolve hostname to IP address.
> If you use IP address in connect string it can work only if this
> is supported by GetHostByName(), which is not always the case
> (iirc you need winsock-2).

Thanks, I didn't realize that. (I think I heard it somewhere before though
but just didn't remember)

I tested using the computer name for a local server but using remote string
(\\server\drive\path\dbname) and it didn't require the server name to be in
the host file. I am using Win98 so I don't know if it works the same for
other versions of Windows. This means that using the TCP protocol and the
remote syntax, it should work fine. I assume Windows figures out that you
are referencing it's own machine and so it uses the known address for it
without having to look it up via the Hosts file.