- Home /
UnityWebPlayer security policy
I'm using uniTUIO in my WebPlayer application, so I need it to listen for an UDP from the localhost, but player's security policy blocks it. I'm new to Unity, so I cant find out how to modify security settings and if it's possible at all.
I'll be thankful for any help and guides about that!
Answer by Bunny83 · Mar 18, 2011 at 01:35 PM
A webplayer built can't listen on a socket!
There's only one exception: The built-in RakNet-Network system. There is no way to open custom listen sockets.
edit
I just had another look on the Security Sandbox page. In general it should be possible to receive UDP packets (since it's connection less). But you have to provide a policy file. Don't know if you need it on local host. Read the "listening sockets" part, maybe you'll find a solution.
Just a little note: You can't even listen on a UDP port. You need to call recv
and wait for a packet to arrive. I've never done something like that with C# (or JS. In short: mono). Even in c++ i've only worked with TCP. Back in the old days i've works with UDP but that was in Delphi and Windows98 :D
Thanks! So, as I understand, there is absolutely no way to implement TUIO inside a WebPlayer built? (
It seems so, at least if your need a listen UDP socket it's not possible. Always keep in $$anonymous$$d that you can hide a unity webplayer on a website. It would be a high security risk. You just visit a website and suddenly there's a listen port open. Even the built in networking is a security issue, but it's still under Unity's control.
Your answer
Follow this Question
Related Questions
Data security of Web player 0 Answers
Web Player and security 0 Answers
Security Sandbox on the webplayer 3.0 1 Answer
WWW fails in Webplayer but not Standalone 0 Answers
How do I protect my webplayer from beeing used from other sites? 2 Answers