x


C# System.Net Sockets don't work

Hi, I recently started playing with Unity 3.0 (the free edition), in particular i'm messing with one demo inside the "Procedural examples" package, Lightning Bolt (the C# code). I have a very simple library that does basic text communication with my public server (fixed IP) over Socket() on port 80 (it's a very simple HTTP/1.0 self-written server). It all works very well when deployed for PC or Mac, I can't say the same for the Web Player deployment, where, beside having a Socket Policy Server answering to 843/tcp, Socket communication just don't work. Monitoring using Wireshark shows that 843/tcp communication goes well till the end (connection gets closed after FIN), but then, the communication with my server stops here.

Any clue?

more ▼

asked Apr 15 '11 at 09:20 AM

Fabio Erculiani gravatar image

Fabio Erculiani
21 1 1 2

How do you offer the cross-domain-policy What i've read is that on port 843 you just have to return the policy. There's no http on that port. Just if there's an incoming connection you have to return the policy, but I haven't used Sockets in Unity so far. Also your server is a standalone app, right? Listening sockets are not allowed in the webplayer. If you use port 80 and tcp, why don't you use the WWW class? +1 for using wireshark ;)

Apr 15 '11 at 10:50 AM Bunny83
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x815
x60

asked: Apr 15 '11 at 09:20 AM

Seen: 1529 times

Last Updated: Apr 15 '11 at 09:20 AM