- Home /
My tcpip connection works on pc but don't work on tablet
Hi there,
I've got a problem here:
I set up the Asynchronous socket of server and client on two unity programs. The connections works fine if both server and client run on PC (no matter on same PC or different PCs in same LAN). Now I'm trying to build the client program as an Android tablet app and the connection couldn't be established. The returned socket exception error code is 10057.
This time both PC and tablet on the same WLAN. The LAN ipv4 address: port of pc (server) is 192.168.0.100:13000 and the LAN ipv4 address of tablet (client) is 192.168.0.104 (static). I've disabled the windows firewall on PC. The firewall on router has also been disabled.I tried ping operation in command line to test the internet connection between pc and tablet. It works bidirectionally.
The Asynchronous socket server code is: https://docs.microsoft.com/en-us/dotnet/framework/network-programming/asynchronous-server-socket-example and the client code is: https://docs.microsoft.com/en-us/dotnet/framework/network-programming/asynchronous-client-socket-example . In both the socket and client code I manually modify the ipaddress to be 192.168.0.100 and port# to be 13000.
I've googled for a whole day and it seems that no one got a same situation as mine. Any ideas or thoughts?
Thanks in advance.