I'm trying to connect to the server for the first time just to see what might happen
My code so far :
And what i get is
Someone explain to me what ma i doing wrong
Ps: sorry for the english but my french is really bad and i can't express what i want to say using french
My code so far :
C#:
Socket sck = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
sck.Connect(new IPEndPoint(IPAddress.Parse("213.248.126.39"), 443));
byte[] buffer = new byte[sck.ReceiveBufferSize];
int n = sck.Receive(buffer);
Array.Resize(ref buffer, n);
Console.WriteLine(Encoding.Default.GetString(buffer));
Console.Read();
Someone explain to me what ma i doing wrong
Ps: sorry for the english but my french is really bad and i can't express what i want to say using french