The followingcode runs properly on the device but gets a timeout on the desktop.
If I run it under debug (on the desktop) it gets a timeout (without sending out any http request) but if I set debug run going a second time, it works fine.
Suspect your desktop firewall.These often do more harm then they avoid.
Try to deactiviate the firewall, if still not solved, deinstall the firewall.I've seen that a lot of times with products like Norton etc...