Many ways to do that. Depends on the kind of host. For web servers, try
opening WebRequest and wrapping it into try/catch
For other kind of servers you can try creating a socket and connecting but
the asking ConnectionManager to connect will be your resposibility. You can
use the CM wrapper from OpenNETCF SDF