Tuesday, June 7, 2016

SOAP UI Error: "java. net.SocketException: Permission denied: connect"


SOAP UI Error: "java. net.SocketException: Permission denied: connect"


I have recently installed Windows 7 in Parallels on Macbook pro and installed SOAP UI 4.5.1 on this Windows VM. I was not able to execute any soap tests from SOAP-ui tool when I am connected to VPN (which was not the case when I execute same SOAP-ui testing from non VPN connection). Following is the error I was seeing in SOAPui console:

Error: java. net.SocketException: Permission denied: connect

With some research online, I was able to find that by disabling IPv6 in Windows network adapter for VPN, I was able to fix this error.

Following are the steps to unbind IPv6 from a specific VPN network adapter on Window-7:

1. Click Start, and then click Control Panel.
2. Click Network status and Tasks.
3. In the View your active networks area, click VPN / Local Area Connection, and then click Properties.
On the Networking tab, click to clear the Internet Protocol Version 6 (TCP/IPv6) check box, and then click OK

Restart your windows system after saving the changes.