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

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

book

Article ID: 239131

calendar_today

Updated On: 10-17-2023

Products

Service Virtualization

Issue/Introduction

Developer having a problem running tests.

  • Cannot run a API test thru DevTest 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.

Environment

All supported DevTest releases and platforms.

Component : DevTest Portal

Cause

Needed port was not open on Simulator machine.

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.