Create multiple connections using Stream Socket

Subazzz 1 Reputation point
2019-12-13T06:04:55.153+00:00

I have two separate uwp apps which run as Server and Client. I installed Server app in one machine and Client app in 3 machines. I need to share a file from Server app to Client app. When I shared the file

  • Sometimes it is not shared to all the apps.
  • Sometimes one app is crashed and closed.
  • Sometimes I get "Only one usage of each socket address (protocol/network address/port) is normally permitted for multiple socket connections in uwp" exception when the file is not shared.

I think we can't have multiple separate sockets open on the same IP address / port.Then how can we define dynamic port range for multiple connections for above scenario?

Universal Windows Platform (UWP)
{count} votes