Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Incorrect port received #22

Open
FrostSource opened this issue Jun 22, 2024 · 0 comments
Open

Incorrect port received #22

FrostSource opened this issue Jun 22, 2024 · 0 comments

Comments

@FrostSource
Copy link

The port value given in both EndpointDetected and DatagramReceived does not match the port chosen when creating the endpoint in the other app.

I have copied the src/Node/Program.cs example and built it to test.
I open two versions of the exe with endpoints 127.0.0.1 8000 and 127.0.0.1 8001 respectively.
I send a message from both programs to the alternate ports and the message is received/displayed, however the port shown is incorrect.
If I try to send a message to the port shown, nothing will happen.

Here is an image of the above occurring:
WindowsTerminal_6TBBtTEiOI

I am unsure if this is an actual bug or a misunderstanding on my part as I have never done networking before (hence my search for a simple library). If this is intended behavior then how would I go about knowing which port to send to without knowing it before an endpoint is detected?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant