Closed deiv23 closed 4 years ago
Could you please test the code with a different server in order to determine if it is a client or server-side issue?
I use same server with another app in react (not react-native), where I use 'net-socket' and it's working properly. Previously the server was on a windows machine, now I ported it to linux, I'll keep investigating to know if it is a server-side issue.
@deiv23, looking at your code, it looks like you are creating both sockets on the same localAddress
and localPort
, that may be causing the second client to not bind correctly.
Please, try to change the second localPort
to a different one.
Hi @Rapsssito , you were right, the problem was on the server. Now is working properly. Thanks!!
Glad you fixed it!
Hi, I have no problems establishing a connection for the first time. But after that first connection, I want to establish a new connection on the same port and ip, and the server socket (written in python) gets stuck on accept for this second connection.
Here is my code: