Skip to content

How to handle IP change of a peer #5463

Answered by dariusc93
StefanoSetti asked this question in Q&A
Discussion options

You must be logged in to vote

From previous testing, yes, however as I reread your OP, I am not sure if libp2p deals with dynamic IP. Assuming it is reported to the interface it should, but this might require some configuring of the dhcp client on your end. Regardless, if it can be picked up by if-watch (which is what libp2p-{tcp,mdns,quic} use) then i can assume it will be handled internally, although for the connections, i would have to check to see how AddressChange is emitted under the existing connection.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@StefanoSetti
Comment options

@dariusc93
Comment options

Answer selected by StefanoSetti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants