Home Forums Support Client and Server in the Same Application Reply To: Client and Server in the Same Application

#802
Anonymous
Inactive

Heya GregJ,

Logging is global, you can only ever have one instance of it in the same application domain.

There is no need to make the distinction between client and server when using NetworkComms.Net. Every client immediately becomes a server when you start accepting incoming connections using:

TCPConnection.StartListening(true);

or

UDPConnection.StartListening(true);

What you are trying to do seems to be similar to our chat example, take a look at that, https://networkcomms.net/creating-a-wpf-chat-client-server-application/.

Regards,
Marc