18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Connection refused: connect Error

splendidsplendid Members
edited November -1 in Sahi - Open Source
Hello,

I get the following error messeage when I try to open up sahi controller.

Sahi Error - Connection refused: connect
Either the remote server is down or not reachable
or
You need an external proxy to be configured.

You could configure the external proxy by editing <sahi_root>/config/sahi.properties and setting these properties:

ext.http.proxy.enable=true
ext.http.proxy.host=external_proxy_server_hostname_or_ip
ext.http.proxy.port=external_proxy_server_port

If your proxy needs authorization, you should set these properties too.
ext.http.proxy.auth.enable=true
ext.http.proxy.auth.name=proxy_authorization_username
ext.http.proxy.auth.password=proxy_authorization_password

You should do the same with ext.https settings for https sites.


Can you tell me how I can resolve the issue?

Thanks and regards,

Sean

Comments

  • narayannarayan Administrators
    Do you normally use a proxy to connect to the internet?
  • Yes. I use system proxy seetings for internet here.
  • narayannarayan Administrators
    Hi Sean,

    You will need to configure Sahi to use your proxy settings.

    Follow the instructions shown with the error.

    Edit <sahi_root>/config/sahi.properties and set these properties:
    ext.http.proxy.enable=true
    ext.http.proxy.host=your_system_proxy_server
    ext.http.proxy.port=your_system_proxy_server_port
    

    If your proxy needs authorization, you should set these properties too.
    ext.http.proxy.auth.enable=true
    ext.http.proxy.auth.name=proxy_authorization_username
    ext.http.proxy.auth.password=proxy_authorization_password
    
    You should do the same with ext.https settings for https sites.

    Let us know if you need more help.

    Regards,
    Narayan
  • Hello,

    Can you teach me how I can figure out my proxy server adress and port?

    Thank you.
  • SteveSteve Members
    I was successful in circumventing the localhost/port 9999 problem by following the recommendations Narayan suggested in post #3. (Also, it indicates right on the web page the steps to be performed). Now however I can no longer get the Controller to pop (Ctrl + Alt +2xclick). This used to work before I made the edits to the properties file.

    Is there a way I can configure the Controller to launch by other means? Or additional troubleshooting I can perform?

    I am using:
    Firefox 3.6.3
    Windows 7 32 bit
    Java 1.6

    thanks
  • SteveSteve Members
    NOTE:
    In a followup to post #6, I followed all of these suggestions as inficated in the /help-the-sahi-controller-does-not-come-up page
Sign In or Register to comment.