Subject | Re: [ib-support] Re: win98 connections |
---|---|
Author | Woody |
Post date | 2001-10-02T09:59:26Z |
From: "Ivan Prenosil" <prenosil@...>
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.
Woody
> This will not _guarantee_ success either, because IB clientfunctionality
> 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 caseThanks, I didn't realize that. (I think I heard it somewhere before though
> (iirc you need winsock-2).
>
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.
Woody