the web socket,is not connected !
Options
Kest
✭
we use the photon server version is the 4.0.29.11263, the client use the photon-javascript-sdk-4-0-0-6.
when we use the photoncloud , work is OK.
but, we use myself server, its not working !
we Step by step according to the tutorial :https://doc.photonengine.com/en-us/onpremise/current/operations/websockets-ssl-setup
the server is runing, but the client is not connect to the server。
the server log:
37544: 10:46:29.900 - Will accept ANY sub-protocols from the client
37544: 10:46:29.900 - No automatic WebSocket ping
37544: 10:46:29.904 - Secured using certificate: "www.cqredao.com" from store: "My" using machine store
37544: 10:46:29.905 - Adding Policy File listener on: 0.0.0.0: 846 with a listen backlog of: 150 and serving Policy File: "D:\JinSha\deploy\Policy\assets\socket-policy.xml"
37544: 10:46:29.905 - TCP inactivity timeout: 10000ms
37544: 10:46:29.905 - Adding Policy File listener on: 0.0.0.0: 946 with a listen backlog of: 150 and serving Policy File: "D:\JinSha\deploy\Policy\assets\socket-policy-silverlight.xml"
37544: 10:46:29.905 - TCP inactivity timeout: 10000ms
37544: 10:46:29.946 - Service is running...
plz help me! what is we need to do?
when we use the photoncloud , work is OK.
but, we use myself server, its not working !
we Step by step according to the tutorial :https://doc.photonengine.com/en-us/onpremise/current/operations/websockets-ssl-setup
the server is runing, but the client is not connect to the server。
the server log:
37544: 10:46:29.900 - Will accept ANY sub-protocols from the client
37544: 10:46:29.900 - No automatic WebSocket ping
37544: 10:46:29.904 - Secured using certificate: "www.cqredao.com" from store: "My" using machine store
37544: 10:46:29.905 - Adding Policy File listener on: 0.0.0.0: 846 with a listen backlog of: 150 and serving Policy File: "D:\JinSha\deploy\Policy\assets\socket-policy.xml"
37544: 10:46:29.905 - TCP inactivity timeout: 10000ms
37544: 10:46:29.905 - Adding Policy File listener on: 0.0.0.0: 946 with a listen backlog of: 150 and serving Policy File: "D:\JinSha\deploy\Policy\assets\socket-policy-silverlight.xml"
37544: 10:46:29.905 - TCP inactivity timeout: 10000ms
37544: 10:46:29.946 - Service is running...
plz help me! what is we need to do?
0
Answers
-
the client log:
Master: PhotonPeer[_onConnecting] - Starts connecting wss://www.cqredao.com:9090
..., raising "connecting" event ... at (e:\client\JinShaH5\libs\Photon\Photon.js:679:47)
WebSocket connection to 'wss://www.cqredao.com:9090/
' failed: WebSocket opening handshake was canceled at (e:\client\JinShaH5\libs\Photon\Photon.js:86:32)
Master: PhotonPeer[_onError] - Connection error: {"isTrusted":true} at (e:\client\JinShaH5\libs\Photon\Photon.js:679:47)
Clent: State: ConnectingToMasterserver -> Error at (e:\client\JinShaH5\libs\Photon\Photon.js:679:47)
状态改变::Error at (e:\client\JinShaH5\src\net\Client.ts:60:5)
Clent: Error: 1001 Master peer error at (e:\client\JinShaH5\libs\Photon\Photon.js:679:47)
Master: onclose: wasClean = false , code= 1006 , reason = at (e:\client\JinShaH5\libs\Photon\Photon.js:679:47)
Master: PhotonPeer[_onTimeout] - Client timed out! Raising "timeout" event ... at (e:\client\JinShaH5\libs\Photon\Photon.js:679:47)
Clent: State: Error -> Error at (e:\client\JinShaH5\libs\Photon\Photon.js:679:47)
状态改变::Error at (e:\client\JinShaH5\src\net\Client.ts:60:5)
Clent: Error: 1004 Master peer error timeout at (e:\client\JinShaH5\libs\Photon\Photon.js:679:47)
Master: PhotonPeer[_onDisconnect] - Socket closed, raising "disconnect" event ... at (e:\client\JinShaH5\libs\Photon\Photon.js:679:47)
0 -
0
-
from config point of view everything is fine. i assume you have firewall issue.
please check that all ports are open
best,
ilya0 -
the port is open, i use the ”telenet“ do it for test, that is ok。 firewall is closed。
so i need help。。。
plz help me0 -
did you enter correct certificate name? exaclty what you see in 'Issued to' in certificates manager?
best,
ilya0 -
how did you get your certificate? it should breal certificate to work in real world. so you either should buy one or try to get one from http://letsencrypt.org/
best,
ilya0 -
i buy the certificate from Symantec, ' Issued to‘ is ok.
i import it into personal 。0 -
please check that you imported it to personal for Machine0
-
i see that you did it correctly otherwise Photon would not start
so, lets start from the begining. please try to start your client right on this machine. you should exclude all other factors. you should see that it works locally.
best,
ilya0