I am using the FEZ Cobra II (wifi) mainboard, without any modules and the, newest, 4.2.9 Firmware.
I have established a connection with my wireless router, and been assigned an IPv4 lease through the router’s DHCP server.
Now, when I try to request a resource, or provide a service (lets say… WebClient/WebServer). It will hang, I have tried as much hackery as I could summon; but to no end.
Here are some of the lines of code where it hangs up (keep in mind, snippets):
// ------- GHI WebServer helper version
WebServer.StartLocalServer(wifi.NetworkInterface.IPAddress, 80); //freeze
// ------- GHI WebClient helper
WebClient.GetFromWeb("http://192.168.2.3/gadgeteerTest.html").ResponseReceived += new HttpRequest.ResponseHandler(testWebClientCallbackFun); //freeze
// ------- GHI WebClient helper alt
HttpRrequest req = WebClient.GetFromWeb("http://192.168.2.3/gadgeteerTest.html");
req.ResponseReceived += new HttpRequest.ResponseHandler(testWebClientCallbackFun);
req.sendRequest(); //Freeze
// ----- WebClient Request (alt 2)
WebRequest request = WebRequest.Create("http://192.168.2.6/gadgeteerTest.html");
request.Timeout = 3000;
WebResponse response = request.GetResponse(); //freeze
// ----- WebServer Listener (alt)
Socket listenSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); //freeze
Here’s where it gets strange… I can ping the device with ICMP ECHOs all day and they come back…
I’m not sure what I should do, I suspect it may be my router at this point… If there is any more information I can provide, please let me know.