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 Mr.Grey · Jan 29, 2013 at 03:37 PM · webplayersocketpolicy

How connect from Unity WebPlayer app to C# server

I develop some app with Unity for web. And I have C# prog (server). When Unity app start, it send data to server for calculating.

I can't understand what I must doing when my app send to server "< policy-file-request />" string. I try send with socket content of file "crossdomain.xml" but it not work.

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 Mr.Grey · Jan 29, 2013 at 03:16 PM 0
Share

I use ip/port 127.0.0.1:843 for connecting

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Graham-Dunnett · Jan 29, 2013 at 03:49 PM

The socket policy file is only needed if your application wants to open a socket to a remote server. In this case, the web player requests the socket policy file on port 843 to check that the remote server is happy to accept socket connections.

Think of it like this. You want to date some girl. You ask her if you can have her phone number. If she gives you her number, then you can call her and set up a date. If she does not give you her number, or runs away screaming, then you cannot date her.

You want to talk to a remote server. You ask for a socket policy file. If the server gives you a file, and it says you can connect, then you can connect over a socket and talk to the server. If the server does give you permission, or does not return a policy file, then you cannot connect to the server.

This process is only required if you build a webplayer, and is needed only if you are opening sockets to remote machines, where remote means not the server that issued the unity3d file.

Comment
Add comment · Show 1 · 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 Mr.Grey · Jan 29, 2013 at 11:45 PM 0
Share

I deploy client(Unity) and server (C# desktop app) on my PC but client try get policy file automatically. What I must doing? How my server app should send response?

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

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Security.PrefetchSocketPolicy problem. 0 Answers

How to optimize the build game for unity webplayer? 1 Answer

Web Player "Invalid Data File" 1 Answer

Unity Web Player administrator privileges 0 Answers

Why is Unity trying to get a crossdomain policy, even when trying to access a server on the same domain? 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