Port Reporting Issue
Closed this issue · 1 comments
Exergist commented
I encountered some kind of issue with reporting the port via the ConnectionEventArgs
.
In this example I targeted 127.0.0.1
on port 4548
.
Upon client connection the (server) ConnectionEventArgs
contains:
...however the client's contents DO seem to show the correct target:
Each time I run my code the server-reported args.Client.Port
changes to a new number, seemingly above 50000.
Also note that this same issue seems to occur for the DisconnectionEventArgs
.
Any thoughts as to what might be going on or what I might be missing?
jchristn commented
This is expected. Client port numbers are generally random over a certain number and chosen by the operating system. The server port is static and defined by you.