Z
Z
Zerstoren2012-10-11 00:19:51
Computer networks
Zerstoren, 2012-10-11 00:19:51

What will be the behavior of the socket server, with a dynamic user IP?

I'm not a master in network technologies, I'm just learning, but now I have a question that I can't get an unambiguous answer on the internet (it doesn't google well for me).

There is a socket server written in Python that waits for a socket connection to itself, creates a thread, and so on.
There is a client that connects to the server via a socket, communicates with the server, and so on. But what if the client's ip address changes while working with the server (they will just be in touch). Will the connection to the server break or will the connection continue without any problems?

In this thread, I was confronted with the fact that the client's external ip can change at any time. So I want to know what happens if the IP address changes.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2012-10-11
@Zerstoren

the socket will cease to be serviceable, this is obvious. If I understand correctly, we are talking about a tcp/udp socket like server:port1<-->client:port2.

R
Robotex, 2012-10-11
@Robotex

Well, in order for the IP address to change, it is necessary that the client's network connection is broken. Therefore, it will cut off from the server and connect with a new IP address.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question