Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Slippy · Mar 18, 2011 at 01:33 PM · webplayersecurity

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!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Mar 18, 2011 at 10:33 PM 0
Share

I've edited my answer, maybe it helps.

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

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

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Slippy · Mar 18, 2011 at 01:48 PM 0
Share

Thanks! So, as I understand, there is absolutely no way to implement TUIO inside a WebPlayer built? (

avatar image Bunny83 · Mar 18, 2011 at 04:04 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

No one has followed this question yet.

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges