.net - C# Check Remote Server -
Can advise using the best method (NET 3.5) when a remote server is available.
I was thinking of using the following code, but would like to know if there is a better way if the community has any other option.
TcpClient client = new TcpClient ("MyServer", 80); If (! Client.Connected) {new exception ("Unable to connect to MySer at port 80"); } Client.Close ();
you can do it
you can do it from
You can make a request
If this is a local IIS 6 server on your network, and you have some administrator details, then you use some directories by using the internal code
Can also help answer some, especially the accepted answer that talks about
to the print server (or, in particular, the printer) A Code can help code by Scott, anyway there is a fun code to play :-) That code mentions DNS roll, which is obsolete and replaced
I'm out of ideas: -)
Comments
Post a Comment