You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using okhttp with StompProtocolAndroid to connect an android device to a PC using websocket. The websocket server has been developed by Springboot.
It is working fine when I run the client app on emulator. When I run the app on a real android device which is connected to the same Wifi network that PC is connected to, it works fine too. The problem arises when I connect the android device to the PC with a cable and set IPs for both sides (For example: PC Ethernet IP: 192.168.4.1 and Android Device IP: 192.168.4.3). In this case android device can not connect to the server.
What should I do in this case?
Is any extra configuration required when the device and the PC are connected by cable (not by wifi)?
Please Help me.
Thanks.
The text was updated successfully, but these errors were encountered:
I am using okhttp with StompProtocolAndroid to connect an android device to a PC using websocket. The websocket server has been developed by Springboot.
It is working fine when I run the client app on emulator. When I run the app on a real android device which is connected to the same Wifi network that PC is connected to, it works fine too. The problem arises when I connect the android device to the PC with a cable and set IPs for both sides (For example: PC Ethernet IP: 192.168.4.1 and Android Device IP: 192.168.4.3). In this case android device can not connect to the server.
What should I do in this case?
Is any extra configuration required when the device and the PC are connected by cable (not by wifi)?
Please Help me.
Thanks.
The text was updated successfully, but these errors were encountered: