Correct a socket error on Windows 10

Correct a socket error on Windows 10

book

Article ID: KB0073603

calendar_today

Updated On:

Products Versions
TIBCO Streaming 10.x

Description

When using 'epadmin' commands to administrate a node we get error:
 Failed to open a connection to the node at [...]. Reason: Call to 'connect' failed: An attempt was made  to access a socket in a way forbidden by its access permissions.

This error can occur when installing a TIBCO Streaming node, or anytime afterwards.

Issue/Introduction

Reset the network adapter to release the socket

Environment

Microsoft Windows

Resolution

This error may occur if the network interface was changed during the current login session, causing use of that network interface to fail for some ports. This is not the same as trying to use a port which is already in use. Instead it indicates that the network interface is in an inconsistent state. 

Changes to the network can occur if a cable was disconnected and reconnected, or if a Virtual Private Network (VPN) was connected or disconnected, or other changes that may have added or removed the available network interfaces.

On Windows this can be corrected without rebooting by resetting the network adapter using these steps:

1. Open Window Settings, Network & Internet, Ethernet, Change adapter options.

Windows Settings Network Interfaces and Menu

2. Right click on the main adapter used for internet access or use of the VPN.

3. Choose "Disable".

If you are using VPN software, the VPN will likely re-enable the network interface in a minute or two. 

If the network interface is not automatically restarted, from the same menu choose "Enable" and wait for Windows to report that the interface is ready.

You can check the state of the network interface from the command-line using command ' ipconfig /all'. A working interface suitable for TIBCO Streaming use is assigned an IPv4 address. You can confirm the preferred network interface by using ' ping -4 {hostname}' and see what IP address is returned by your current DNS configuration. This IP address is in the range supported by the preferred network interface and the one that should be reset using the above steps.