My problem is I need to connect different port or server! websocket server(localhost:8080) client server(localhost:random) (failed: Error during WebSocket handshake: Unexpected response code: 403) why?? I'm tired...
I already tried same port and I can success! I can connect client(localhost:8080) and websocekt(localhost:8080).
I want to use websocket using (server side: java sts, tomcat 8.0).
questions 1. websocket can connect only same server and port???!!!!(no! please!) 2. If I can... what's the problem :(? Do u have any example?