x


WebPlayer TCPClient connect C# TCPServer app in localhost, posible?

Hi!

Unity 3d Webplayer = TCPClient Win C# app = TCPServer

Possible communication in localhost? Or Webplayer TCPClient banned in security reason?

more ▼

asked May 28 '12 at 11:53 AM

djsaman gravatar image

djsaman
2 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You can use Sockets or Socket based connections in the webplayer, but you have to provide a crossdomain server on port 843 which returns a crossdomain policy. You can use a different port, but in this case you have to fetch the policy manually with Security.PrefetchSocketPolicy.

See the webplayer security sandbox page for more details.

Note: There is a simple socket server included in your Unity installation. Take a look into this folder: UNITY_INSTALLATION_FOLDER/Editor/Data/Tools/SocketPolicyServer

more ▼

answered May 28 '12 at 12:23 PM

Bunny83 gravatar image

Bunny83
45.4k 11 49 207

(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x813
x104
x53
x31
x12

asked: May 28 '12 at 11:53 AM

Seen: 860 times

Last Updated: May 28 '12 at 12:23 PM