Jump to content
  • Advertisement
Sign in to follow this  

Unity HttpWebRequest

This topic is 2117 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

so, i'm working on a game for PSM, and am just experimenting at the moment with trying to create an http connection to an apache server on my local network.



            HttpWebRequest Req = HttpWebRequest.Create("") as HttpWebRequest;
            Req.Timeout = Timeout.Infinite;
                HttpWebResponse Res = Req.GetResponse() as HttpWebResponse;
                Console.WriteLine("Response Status: "+Res.StatusDescription);
            }catch(Exception E){
                Console.WriteLine("Exception: "+E);


however, i get a timeout exception immediately.


so after some googling, i grabed wireshark, and monitored my one and only wireless network adapter, i can see all traffic completely fine, even the http response to the web server from my computer.  but i don't ever see a packet getting sent when i start my program, i've tried some of the other unconnected adapters, but they don't generate anything either.


so, in short, is their something i'm missing for why this c# program isn't trying to create a network connection?


edit: arg, of course i find a solution moments after posting, anway in case anyone comes across this post in the future: http://community.eu.playstation.com/t5/General/Network-connectivity-issues-from-the-emulator/m-p/15096379/highlight/true#M246

Edited by slicer4ever

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!