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

前端 未结 6 608
情歌与酒
情歌与酒 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 15:04

    This looks like a networking problem not a Java problem. Either:

    • the networking on the client either doesn't know how to route packets to the server,
    • the client's connection attempt on port 4449 is being blocked by a firewall or packet filter, or
    • you are using the wrong IP address.

    (The "No route to host" message suggests that it is the first problem, but firewalls are sometimes configured to give misleading responses to traffic that is unwanted.)

    Anyway, you would be better off looking for a site on how to configure and / or networks and routing.

提交回复
热议问题