Information

This CSharp (C#) code snippet shows how to request a web page using the HttpWebRequest class with digest authentication method enabled.

This CSharp (C#) code snippet shows how to request a web page using the HttpWebRequest class with basic authentication method enabled.

This CSharp (C#) code snippet shows how to get the IP address of the machine.

The following code snippet demonstrates how to calculate the MD5 checksum of a given input string. The MD5 checksum is returned as a hexadecimal string (as usual).

This CSharp (C#) code snippet shows how to get the external IP address (IPv4) of a machine (i.e. dialup connection IP). To achieve this we get all ip addresses of the machine and compare them against the local address ranges (10.0.0.0/24, 172.16.0.0/16, 192.168.0.0/16 and 169.254.0.0/16).

Page 5 of 5
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.