0
votes

I'm using jmeter for gaming application which has both https and WSS connection. WebSocket Samplers by Peter Doornbosch is used to connect WebSocket.

It works perfectly in my machine, able to hit the server and received the response.

I try to run the same jmx file in other machine connection refused error occurred while connecting to web socket. Able to Https request successfully only WS failed.

Added all hosts in other machines but I can't able to find the Root cause of the error.

can anyone please help me to sort out this issue

1
Using port 443 for WSS - Amu
Any answer regarding this issue?? - Amu
Any help regarding this issue? - Amu
Have you tried using the browser on different machines? - 4m01
Sorry, I don't understand why I need to try using other browsers. - Amu

1 Answers

0
votes

You should check your configurations again, it is hard to believe that what you report is actually happening; i'll explain why. "connection refused" is an error on TCP level: it means the server actively refuses to accept the connection (it sends a TCP reset). At this point, HTTPS and WSS are not at play: these protocols run on top of TCP, so their handshake starts after the TCP connection is successfully set up. When receiving a TCP connect request, the server cannot know whether it is (will be) HTTPS or WSS. Therefore, your claim that HTTPS works, but WSS results in a "connection refused" error is weird and very unlikely. You should double check that you are using the correct hostname, port, etc, and that the HTTPS client is really connecting to the same server.

If this doesn't help, you should use WireShark or a similar tool to find out what is going on on (TCP) protocol level. Again, when the error is "connection refused" the problem is not in the WS or WSS or HTTP or HTTPS layer.

Hth Peter