ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Connect timeout error when doing a stage to remote Simulator from Workstation

book

Article ID: 239131

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Developer having a problem running tests.

  • Cannot run a API test thru Dev test Portal – Getting “Connect Timeout”
  • Due to this issue, we are blocked with implementing Service Monitor Thru “CVS”

============================================================================
| HTTP
============================================================================
| Step:        http GET
----------------------------------------------------------------------------
| Message:     java.net.SocketTimeoutException: connect timed out
----------------------------------------------------------------------------
| Trapped Exception: connect timed out
| Trapped Message:   java.net.SocketTimeoutException: connect timed out
----------------------------------------------------------------------------
STACK TRACE
java.net.SocketTimeoutException: connect timed out
 at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
 at java.net.Socket.connect(Socket.java:607)

Steps to Reproduce:
******************************
1. Workstation connecting to a remote Registry.
2. Executing a test case with a REST step that makes a GET call to an API and works with no issues from the customer Workstation.
3. Can run URL from browser with no issues as well.
4. Do a stage of the test case and get a timeout.
5. Executed the test case on the Workstation where the Simulator is running and the same timeout.
6. Cannot run the URL from browser on the Simulator machine.

Cause

Needed port was not open on Simulator machine.

Environment

Release : 10.6

Component : DevTest Portal

Resolution

All the DevTest ports were open, except a needed port to hit the application from the Simulator machine.


Opening port 443 resolved this issue.