Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

On replay why do I get the error "WebTcpipConnect(WinSock: 10061 - Connection refused,")?

On replay why do I get the error "WebTcpipConnect(WinSock: 10061 - Connection refused,")?

When recording against certain TCP/IP based applications, for example a browser generating http, the following traffic may be recorded e.g.:

WebTcpipConnect(hWeb0, "", 55486);

WebTcpipSend(hWeb0, "h434F4E4E454354");

In the above example the generated TCP/IP traffic is application-internal communication within the client (identifiable by the internal loop back address and should be commented out. During replay this will most likely generate errors as the client will probably not be open, be in the necessary state to accept connections, or will not accept connections from multiple virtual users.

If the client-side request/calls are not removed from the script then it can lead to replay errors such as:

 WebTcpipConnect(WinSock: 10061 - Connection refused,

To resolve the error you should either delete the calls from the script or suppress the recording of the client only TCP/IP traffic. Using the above example the port number that needs to be suppressed is 55486, therefore you should go to:


and enter the port number.

Please note: If the client side port allocation is dynamic then you can suppress a port range e.g. 55000-65535.

If the port mentioned in the loop back address is 5152 specifically

WebTcpipConnect(hWeb0, "", 5152);

Then it is possible to disable the "During replay why do I get the error "WebTcpipConnect (WinSock: 10061 - Connection refused,") on port 5152 specifically?" service which is causing this.

Additionally there is an option in the settings to exclude local traffic which stops loopback and local IP traffic being redirected through the recorder. This will also stop these TCP/IP functions being captured.

Settings | System | Recorder | Application Profile | IE | Web Settings | Exclude Local Traffic.


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-10-21 18:34
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.