DEV Community

loading...

Discussion on: Creating a realtime chat app with android , NodeJs and Socket.io

Collapse
hoseincnn profile image
hosein-cnn

Hi
I wrote exactly the same code as you, but the ("a user connected") sentence is not displayed in cmd.
I have been involved in this issue for two months and there is nothing left on the stackoverflow and GitHub that I have not read.
I checked all the side works such as targetSandBoxVersion , clearTextTrafic , network_security_config , test https and http , open ports with telnet , test 10.0.2.2 and 127.0.0.1 urls , and etc .
Also My laptop does not have any server connection problem because I can send and receive http requests.
Could it be a problem with the android websocket firewall?
I'm really tired.
Please help me if anyone has a similar problem or knows the solution.