How can I test a connection to a server with C# given the server's IP address?
How can I programmatically determine if I have access to a server with a given IP address using C#? ...
How can I programmatically determine if I have access to a server with a given IP address using C#? ...
I want to test a connection to a machine in my local intranet. I know the IP address. What port number should I use? 555? BTW: I'm using .NET. ...
How can I determine if I have write permission on a remote machine in my intranet using C# in .Net? ...
How can I determine if a remote drive has enough space for me to upload a given file using C# in .Net? ...
I want to create a new net.tcp://localhost:x/Service endpoint for a WCF service call, with a dynamically assigned new open tcp port. I know that TcpClient will assign a new client side port when I open a connection to a given server. Is there a simple way to find the next open TCP port in .Net? I need the actual number, so that I can ...
Hello, I have a class that encapsulates tcp socket communications with a server. For each command message sent to the server, the server will send back a response message that invariably contains a response code (OK, Fail). Using my class, each command can be executed either sync or async. There are basically two types of exceptions tha...
I'm working on a portable device, that when I connect it to a windows machine (over USB), it shows up as a seperate network interface to the PC. This is great, except when I want to connect several devices together, and want them to all be on the same network (subnet). I'm looking for the ability to bridge network interfaces together au...
Does anyone have C# code handy for doing a ping and traceroute to a target computer? I am looking for a pure code solution, not what I'm doing now, which is invoking the ping.exe and tracert.exe program and parsing the output. I would like something more robust. ...
I'm programming an online game for two reasons, one to familiarize myself with server/client requests in a realtime environment (as opposed to something like a typical web browser, which is not realtime) and to actually get my hands wet in that area, so I can proceed to actually properly design one. Anywho, I'm doing this in C++, and I'...
We have a networked device, and we would like to perform some tests on how it handles malformed packets. Is there a product out there that can generate arbitrary packets and packet sequences? I would like to be able to specify a set of TCP/IP payloads and it would open a connection and send the data. Obviouly, the TCP/IP checksum should...
I've googled around for a while trying to find a good libnet tutorial but most of them appear to be out of date or lacking on good code examples. What do you recommend for learning libnet? I'm also having problems compiling programs using the libnet headers; what's the flag(s) needed for this? ...
What are the best SNMP libraries to use with .NET? Specifically for listening for traps or sending set or get requests. ...
Is it possible to gather performance statistics programmatically from inside a WCF application? For example, the number of connections open or requests received. ...
How do people approach mocking out TcpClient (or things like TcpClient)? I have a service that takes in a TcpClient. Should I wrap that in something else more mockable? How should I approach this? ...
I'm currently trying to debug a customer's issue with an FTP upload feature in one of our products. The feature allows customers to upload files (< 1MB) to a central FTP server for further processing. The FTP client code was written in-house in VB.NET. The customer reports that they receive "Connection forcibly closed by remote host" er...
How do you detect if Socket#close() has been called on a socket on the remote side? ...
This was a question raised by one of the software engineers in my organisation. I'm interested in the broadest definition. ...
My end goal is to have a report showing all the top level domains that were visited the previous day from all the computers at my home. The report would also be able to show which pages were visited, which local IP address went there. I'd also like to track incoming and outgoing bandwidth used. I don't want to install an application o...
My code needs to run all networking routines in a separate NSThread. I have got a library, which I pass a callback routine for communication: my thread code library my callback (networking) library my thread code My callback routine must POST some data to an HTTP server (NSURLConnection), wait for the answer (start a N...
I need a cross platform method of determining the MAC address of a computer at run time. For windows the 'wmi' module can be used and the only method under Linux I could find was to run ifconfig and run a regex across its output. I don't like using a package that only works on one OS, and parsing the output of another program doesn't s...