I am confused with Security.PrefetchSocketPolicy call. Headachy some really!!
1. Only the Web Player is Evil some:
I use the photon as my game server which has its policy server on default port 843.
Then I connect to the server(use socket, you known). Everything works properly in Editor and StandAlone but the WebPlayer.
2. The IP and Port is OK
I am sure my fireworks not block the port 843, I turn them off. I can telnet the port and get the crossdomain string back successfully. either to the sockpol Server(offer by unity) or Photon policy server. All port and IP works perfectly except in Webplayer!
3.I do myself, but not work
The doucument from the Unity tell me I needn't call the Security.PrefetchSocketPolicy("172.16.0.111", 843, 300), eveything default will work for me. But in act it doesn't.
OK, no problem, I did it myself with the following code:
if (Global.Instance && !Global.Instance.Offline)
if (!Security.PrefetchSocketPolicy("172.16.0.111", 843, 300))
4. I try to change the port to 2018, this time is more strange, It doesn't work even in Editor
I change code to: if (!Security.PrefetchSocketPolicy("172.16.0.111", 2018, 300)) and change the photon policy listener port to 2018
I mean if I can call Security.PrefetchSocketPolicy("172.16.0.111", 843, 300) successfully, everything will be ok! But I never, never got the successful return. It is always print "PrefetchSocketPolicy failed!"
Pool man, I've work around it for 5 days, I test it , I try all suggestion from the warmhearted friends (etc: Tobias,). but it still stay there. The evil webplayer!!!!
Help me Pls. guy?
How can I me the Security.PrefetchSocketPolicy work in webplayer???????