TCP\IP client - EHOSTUNREACH (No route to host)

前端 未结 6 636
情歌与酒
情歌与酒 2020-11-28 14:19

I am trying to develop a client server TCP/IP application. I have a server running on my PC and the client app is running on the mobile. They both are in the same Wi-Fi netw

6条回答
  •  情话喂你
    2020-11-28 14:49

    download a ping app on your phone and try to ping the server ip if it is ok ... if using apache put the local machine IP in the httpd.conf configuration file.

    # Change this to Listen on specific IP addresses as shown below to 
    # prevent Apache from glomming onto all bound IP addresses.
    #
    #Listen 12.34.56.78:80
    Listen 127.0.0.1:80
    Listen 192.168.1.30:80  (your IP)
    

提交回复
热议问题