So I need to use the same port for two sockets, therefore I set ExclusiveAddressUse to false and ReuseAddress to true. However, as I run this code I am told that "Bind has already been called for this socket". My question is then: it seems like the TcpClient constructor does the binding, so how can I possibly set ExclusiveAddressUse?
serverSock = new TcpClient();
serverSock.Client.ExclusiveAddressUse = false;
serverSock.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
serverSock.Connect(serverEP);