>>>Hi,
>>>
>>>Finally got back to doing some more testing of the last code you sent.
>>>Unfortunately, if I set up a connection with an invalid gateway, then the API call to GetHostByName is slow.....
>>>As of now I can't see a way around that one ?
>>>
>>>Best,
>>>Viv
>>
>>
>>
>>Viv,
>>
>>I've made it so that GetHostByName() is only called if you use
www.xxxx.xx style
>>If you pass an ip address - it does not call GetHostByName()
>
>Hi,
>I'd seen (and tested) that using a fixed IP address as the 'hit point' would work in a timely fashion. But the code to test for access to the address will be embedded in the application and I cannot guarantee that the IP address currently assigned to the URL will remain static over the medium term. However I do have access to a number of fixed IP addresses so maybe I could use one of those to route the connection ( I could at least guarantee that domain name resolution would work at that point). Need to dwell on this......
>
haha - I just answered how to get around GetHostByName()
How many customers with an invalid gateway will you have ? Is an invalid gateway of any use to you ?
Gregory