Computing.Net > Forums > Windows NT > Detect Network Outage.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Detect Network Outage.

Reply to Message Icon

Name: Ronee
Date: August 22, 2002 at 02:13:26 Pacific
Comment:

Hi,

Need a way (API) to detect network outage on Windows NT.

On Windows 2000 i use a crude way by pinging the machine for its IP (using gethostbyname API). On Windows 2000 the IP gets changed to 127.0.0.1 on network outage. An on reconnection the IP is renewed back from DHCP. The downside of this method are :
#1. Doesn't work on Windows NT.
#2. There is a time latency in this detection.
#3. Won't work with static IP.

Any suggestions to improve this would be greatly appreciated ?

(i am writing a service which is network dependant and should automatically stop on network disconnection and restart on network reconnection)

Thanks in advance.
Ronee.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Detect Network Outage.

win nt can't detect network card www.computing.net/answers/windows-nt/win-nt-cant-detect-network-card/22238.html

need help on nt4.0 setup ! www.computing.net/answers/windows-nt/need-help-on-nt40-setup-/12389.html

Installing WINDOWS NT4.0 error www.computing.net/answers/windows-nt/installing-windows-nt40-error/3781.html