In testing, i got a error about corssdomain.
**If each server’s ip address is different…
If i call ‘Security.PrefetchSocketPolicy’, webplayer talk to me…
**
** 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)
-
Policy-server : If unity API call policy, will send crossdomain plicy.
-
Login-server : check users login
-
Lobby-server : make room, play game
- TEST 1
-
All servers located on same IP address (111.111.111.111)
-
load unity webplayer
-
API call ‘Security.PrefetchSocketPolicy( 111.111.111.111, port)’ to connect Login-server
-
Policy-server send policy packet.
-
connect Login-server and then… check login
-
And then… move Lobby-server
-
API call ‘Security.PrefetchSocketPolicy( 111.111.111.111, port)’ to connect Lobby-server
-
Policy-server send policy packet.
-
connect Lobby-server and then… make room and play.
- TEST 2
-
It is same test flow. but server’s IP address is different.
-
‘Policy-server’ + ‘Login-server’ locate on 111.111.111.111
-
‘Policy-server’ + ‘Lobby-server’ locate on 111.111.111.222
-
" load webplayer → Policy-server → Login-server " is success.
-
and then IP is change 111.111.111.111 → 111.111.111.222
-
policy-server-> Lobby-server is fail.
“SecurityException: Unable to connect, as no valid crossdomain policy was found”
**“TEST-1” is success. (no problem)
“TEST-2” is fail.**
I have a question.
If server’s IP is different, what can adjust crossdomain policy ?
Thank you for read my question