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
I am trying to listen on /tcp/1111, /tcp/1111/ws, and /tcp/1111/tls/ws and getting error bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."}
I thought LibP2P was capable of this?
The text was updated successfully, but these errors were encountered:
Looking through the code in TCP transport it has an option for reuse port but I do not see it in websocket transport. Is there an easy way to add?
Not easily, no. It's not just a matter of saying "reuse this port", you need to be able to detect that the connection is not for you and pass it off to the correct transport.
sukunrt
changed the title
TCP Bind issue
Use the same port for TCP and WebSocket
Jan 24, 2024
I am trying to listen on
/tcp/1111, /tcp/1111/ws, and /tcp/1111/tls/ws
and getting errorbind: Only one usage of each socket address (protocol/network address/port) is normally permitted."}
I thought LibP2P was capable of this?
The text was updated successfully, but these errors were encountered: