You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use a manual introduction between two communities using walk_to, on rare occasions it uses a random port for the connection.
Around 5% of the runs have this behavior.
Description
For community A the host and port are set to 192.168.55.10:9090.
For community B the host and port are set to 192.168.55.11:9091.
The communities run in separate docker containers.
When using a manual walk_to(192.168.55.11,42:9091) the connection can end up like ('192.168.55.11', 51061) when I call get_peers(). In normal occasions, the host and port looks like ('192.168.55.11', 9091).
Output
Currently I do not have a traceback of an error because no error is thrown.
The output in my application is as follows:
There is certainly a reason. Long story short, this is by design: it is occurring because IPv8 is continuously trying to be smart about the ports it uses to more effectively traverse your network address translation. This is also why the big warning block is in our "Creating your first overlay" documentation: never, ever, depend on the (IP, port) of a peer.
Although a port change can happen and is expected behavior, communication breaks down after this. The UDPv4Address and the UDPv4LANAddress are different after the port change. Only when I force IPV8 to ignore the port change and continue with the original ports communication resumes.
This last part doesn't sound like expected behavior.
When I use a manual introduction between two communities using
walk_to
, on rare occasions it uses a random port for the connection.Around 5% of the runs have this behavior.
Description
For community A the host and port are set to
192.168.55.10:9090
.For community B the host and port are set to
192.168.55.11:9091
.The communities run in separate docker containers.
When using a manual
walk_to(192.168.55.11,42:9091)
the connection can end up like('192.168.55.11', 51061)
when I callget_peers()
. In normal occasions, the host and port looks like('192.168.55.11', 9091)
.Output
Currently I do not have a traceback of an error because no error is thrown.
The output in my application is as follows:
Is there an explanation why some connections end up with a random port instead of the port that is creates the community with?
The text was updated successfully, but these errors were encountered: