1) ---------------------------------------------------------
server IP address: 127.0.0.1
client IP address: 192.168.52.34
1) ---------------------------------------------------------
server IP address: 127.0.0.1
client IP address: 192.168.52.34

qamerfarooq wrote:You should opt for the option-1. Because client should have server's IP which is (192.168.52.34)1) ---------------------------------------------------------
server IP address: 127.0.0.1
client IP address: 192.168.52.34

aBin wrote:Thanksqamerfarooq wrote:You should opt for the option-1. Because client should have server's IP which is (192.168.52.34)1) ---------------------------------------------------------
server IP address: 127.0.0.1
client IP address: 192.168.52.34

GeorgieYuan wrote:
Hi all,
I found that when the Server is an Android Server, the socket communication(TCP/UDP) will be failed, any suggestion on this issue?
Regards.
adb forward tcp:6100 tcp:6100
qamerfarooq wrote:GeorgieYuan wrote:
Hi all,
I found that when the Server is an Android Server, the socket communication(TCP/UDP) will be failed, any suggestion on this issue?
Regards.
In case your server is on Android then you need to follow the following steps to make your server available on network:
1- Lets say your server is listening on port number 6100 in android.
2- Forward the ports using the following command, so you can connect to android from localhost
- Code: Select all
adb forward tcp:6100 tcp:6100
3- Now you can connect to this port from localhost but not from the network, it means you can connect using localhost:6100 from your desktop computer but not with the IP (192.168.0.1:6100 )4- An extra step is needed for network access.
telnet localhost 6100 OK
telnet 192.168.0.1 6100 Failed
Use some proxy server which can listen on 192.168.0.140:6100 and forward the data to localhost:6100 (which is your android server)





plusminus wrote:Did you add the uses-Permission INTERNET in the AndroidManifest.xml
Regards,
plusminus


Users browsing this forum: No registered users and 2 guests