//code in the client
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://192.168.0.5/test");
WebResponse response = request.GetResponse();
I have a LAN setup with two machines in my workgroup. - 192.168.0.1 (that's the client) - 192.168.0.5 (that's the web server)
The above piece of code works perfectly fine in a simple wired network.
When I run it on a wireless network, i.e. with the network setup using a wi-fi router instead of a switch, the code doesn't work - it gets stuck on GetResponse.
Strangely, when I open up my browser and type - http://192.168.0.5/test - it works...the page shows up!
What am I missing? Why is the client not able to contact the server through code?