- Home /
 
               Question by 
               djsaman · May 28, 2012 at 11:53 AM · 
                webplayerapplicationservicecommunicationtcp  
              
 
              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?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Bunny83 · May 28, 2012 at 12:23 PM
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
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                