Hi there: Hello, everybody. I am new to the forum. I am trying to make an instant messenger and one of the features that I want to have is when the network connection is lost, automatically logout the client, and when the connection comes back, automatically login the previous client. In order to do that, I need an API to tell whether the network connection is off or on. Does anybody know if there's such an API in Java? Or if you have code to perform such function, I'd appreciate if you can post it. Thanks a lot.