Re: socket issue [message #52604] |
Thu, 22 February 2007 04:55 |
Allan Whiteford
Messages: 117 Registered: June 2006
|
Senior Member |
|
|
Bringfried,
You could try giving the IP number of the remote host rather than the
hostname. The error message implies that IDL isn't seeing your change in
DNS settings when you change them - this is common to lots of programs
which read them at startup and remember them.
Of course, using IP number is dangerous in case the machine changes IP
number one day so you may want IDL to do a lookup as it starts and store
the IP number internally for the session and use the number for all
socket calls rather than the name.
Thanks,
Allan
Bringfried Stecklum wrote:
> One of my programs retrieves data over the web using the socket
> procedure. It also runs on the laptop which has different network
> settings depending on where I am. Usually the IDL session is kept
> running when hibernating/resuming the system. In this case I noticed
> that socket does not become aware of the change in the network settings
> and fails
>
> % SOCKET: Unable to lookup host. Unit: 1, File: remotehost
>
> Of course remotehost can be reached. So it seems that the network
> configuration is fixed upon IDL startup, and not dynamically updated.
>
> regards,
>
> Bringfried Stecklum
|
|
|