Jonno
New member
In visual studio 2003 can you no longer just use the port number as an argument?Do you have to specify an IP address, is there no way around using an IP address?
TcpClient myclient = new TcpClient("1.2.3.4",5000);
NetworkStream ns = new NetworkStream(myclient);
StreamReader sr = new StreamReader(ns);
StreamWriter sw = new StreamWriter(sw);
sw.WriteLine("Hello Server");
sw.Flush();
string s = sr.ReadLine();
Console.WriteLine(s);