I need some help with networking information. I've figured out most of the simple stuff and made it simpler still with an application extension, however there are a few things that still confuse me. With sockets it "appears" as though I have the ability to send information such as text from a text box over the internet. I don't understand how to begin implementing this quite yet. I could use some links to get me started.
I understand what a ping does and how it can be used, however I'm having some problems with the Ping class in System.Net.NetworkInformation. I'm trying to get the echo's address but it keeps throwing an exception. Since I don't have my compiler on this computer I can't tell you all what the exception is but I can include the code snippet and comment the section that's throwing it.
byte[] MyBuffer = new byte[1000];
Ping MyPing = new Ping();
PingReply MyReply = MyPing.Send(IPAddress.Broadcast, 5000, MyBuffer);
string ResultString = MyReply.Address.Address.ToString(); // Throws exception everytime.
Buffers I don't understand at all, is this what contains the information that is to be sent or received? If so how and some links with more information. If not then please some links on what the buffer is when it comes to Sockets and Ping.
All help is greatly thanked and I will reply when I can since I rarely have internet anymore. I have to use WiFi hotspots at cafes around the city. Low on funds so most of them give me a hard time nowadays.