Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 boolpae · Aug 26, 2011 at 10:39 AM · webplayersocketportcrossdomain

Security.PrefetchSocketPolicy problem.


In testing, I got a error about corssdomain.



ErrorCode

  • SecurityException: Unable to connect, as no valid crossdomain policy was found **



My crossdomain policy ...

<cross-domain-policy> <allow-access-from domain="*" to-ports="*"/> </cross-domain-policy>




I made 'socket server' as follows... (client unity is webplayer version)

1) Policy-server : If unity API(Security.PrefetchSocketPolicy ) call policy, will send crossdomain policy.
2) server1 : check users login
3) server2 : play game




TEST 1* (Success - different IP & using default 843 port)

  1. Load unity Webplayer.

  2. unity call 'Security.PrefetchSocketPolicy( 1.1.1.100, 843)'

  3. Policy-server send cross-domain info.

  4. connect Server1 ... Success

  5. And then... move server (server has different ip)

  6. API call 'Security.PrefetchSocketPolicy( 1.1.1.200, 843)'

  7. Policy-server send cross-domain info.

  8. connect Server1 ... Success.



TEST 2* (Fail - different IP & using 9999 port)

  1. Load unity Webplayer.

  2. unity call 'Security.PrefetchSocketPolicy( 1.1.1.100, 9999)'

  3. Policy-server send cross-domain info.

  4. connect Server1 ... Success

  5. And then... move server (server has different ip)

  6. API call 'Security.PrefetchSocketPolicy( 1.1.1.200, 9999)'

  7. Policy-server send cross-domain info.

  8. connect Server1 ... Fail.

  9. Return Error : SecurityException: Unable to connect, as no valid crossdomain policy was found




"TEST-1" is Success. (no problem)
- Server1's IP is 1.1.1.100
- Server2's IP is 1.1.1.200
- Call 843 port for cross-domain info.



"TEST-2" is Fail !!!!!
- Server1's IP is 1.1.1.100
- Server2's IP is 1.1.1.200
- Call 9999 port for cross-domain info.



what is wrong?

Please help me~~~ :)

Thank you for read my question ^^




More info~~ :)

Policy-Server (send crossdomain info to unity) is open 9999 port.

A machine (IP 1,1,1,100)
- Policy-server open 9999 port
- Server1 open 11111 port

B machine (IP 1,1,1,200)
- Policy-server open 9999 port
- Server2 open 11111 port


Process step...
1. Unity webplayer connect Policy-Server's 9999 port for receive crossdomain info. (A Machine)
2. connect Server1
3. move Server1 -> Server2
4. connect Policy-Server's 9999 port for receive crossdomain info. (B Machine)
5. connect Server2
6. But, unity can not connect Server2 .....

If Policy-Server's port is 843(default), that process(move machine) is success.
But, If Policy-Server's port is changed(9999), that process(move machine) is fail.




If do not move (A machine -> B machine), it is success.

Unity only access A machine, or only access B machine is Success. But, unity access A machine and then access B machine is Fail.


What is problem?^^

Comment
Add comment · Show 3
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 Waz · Aug 26, 2011 at 12:35 PM 0
Share

Pleas don't add "please help" stuff to your title. The more clean and clear and uncluttered your question is, the more broadly useful it is and the more likely you will get a satisfactory answer. Click Edit under your question to fix.

avatar image Waz · Aug 26, 2011 at 12:37 PM 0
Share

Your problem appears to be server-side, which you haven't described.

avatar image boolpae · Aug 27, 2011 at 04:44 AM 0
Share

Thank you~ I added more info about server-side.

I can not solve this problem, yet... -0-

0 Replies

· Add your reply
  • Sort: 

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Web Player connection issue. 0 Answers

socket and crossdomain problem (Security.PrefetchSocketPolicy ) 1 Answer

Policy File is being served, but never recognized 1 Answer

Security.PrefetchSocketPolicy does not work in debug session? 0 Answers

How to prevent a Webplayer Game from being saved locally? 1 Answer


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