Using a Network Monitor

   These days connected applications are everywhere. Web Services and Indigo based applications are used to hook up various services over the internet. When something goes wrong you can debug all you want but ultimately you need to look at what is really going on the wire. Network Monitor is your friend. I am surprised…

3

Getting SubnetMask through System.Net.NetworkInformation

Some people have asked me how to get the SubnetMask for the network interfafce. The subnet mask is valid only for IPv4. The solution may not jump at you since there is no property called SubnetMask,however there is a property called IPv4Mask. Here is the code to get the subnet mask for each IPv4 address on…

1

Using System.Net Tracing

In Whidbey (.NET Framework 2.0) System.Net has a new feature called Tracing. This uses the builtin CLR Tracing functionality. What is interesting about the System.Net Tracing is thatYou can easily  see the data that is being sent or received without having to use the NETMON. If you have used Network Monitor tools like NETMON/Ethereal you…

15

Only one usage of each socket address (protocol/network address/port) is normally permitted

Lets say that you are invoking a web service from another web service. Both are on the same box. You might be making authenticatedor unauthenticated calls and perhaps you are setting the KeepAlive = false. Intermittently, (under load) you might get “Only one usage of each socket address (protocol/network address/port) is normally permitted (typically under…

20

I spoke at the PDC 2005

I presented System.Net tips and tricks. I did the lunch session on Tuesday and Wednesday. Lunch sessions are particularly difficult, you only have 45 minutes – You can’t present lengthy topics. I chose to talk about the System.Net Tracing, Negotiate Stream, SSL Stream, Email with Linked Resources and then some kerberos information. Please let me…

2

Please post your questions to http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=40

If you have questions on the System.Net [managed network programming api’s]please post your questions to http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=40 I monitor this forum and so does all of my team. This is your best bet to get your questions answered. There might be other public news groups, but we are not monitoring those actively. Please use the forum…

0

Cookies, Cookie Collection and CookieContainer

When using System.Net or Web Services, you might want to receive or send cookies, perhaps for session statemaintenance or in some rare situations for proxy authentication. The first thing we are tempted to do is to access WebResponse.Cookies collection. But then it returns no cookies. Why?It turns out that unless you assign a CookieContainer to…

5