What would be happen if IP address is changed after connection is established?
Will the connection be broken?
Suppose I am using JAVA
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That depends. SCTP has some special features to permit an established connection to survive routing changes (nearly) transparently, but it’s not widely available yet; I assume you’re really talking about TCP.
If the address of one of the peers changes, to the extent that the other peer would need to use that different address, then no, there is no way for TCP to recover from that.
On the other hand, a router between two non-natted peers could change its address, once the new routes are established, connected peers will likely resume. As long as the routes update quickly enough, open TCP connections are likely to persist the change, but only so long as both peers have the same addresses before and after the routing change. This is actually happening all the time.