I have two computers, a server(192.168.173.1) and a client(192.168.173.2) connected via Ethernet cable and configured with static ips. On the other hand they are both connected to the same wifi network (dynamic ip).
When I ping the client from the server using the command line ("ping 192.168.173.2") I get an instant reply. But when the code pings using the code below
Ping pinger = new Ping();
PingReply reply = pinger.Send(ConfigurationManager.AppSettings["ClientTablet.Ip"]);
return (reply.Status == IPStatus.Success);
I get TimeOut as reply.Status.
If I disconnect the server from wifi and run the c# pinger again. I get a proper response.
Why having the wifi on results in this behavior?