Once again with a little time and effort, i figured out the issue, now i cant figure out this one. Using the code provided form the MSDN archive, i altered it ecept the lines with "e" in them.
Try
socket.Bind(endpoint)
Catch e As Exception
Console.WriteLine("Winsock error: " & e.ToString())
End Try
It says "Variable 'e' hides a variable in an enclosing block." I have no idea how to fix this.