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.

Change of port number for SAHI

pranitapranita Members
edited November -1 in Sahi - Open Source
Hi,

can we change the port no 9999 for using sahi. the firewall in our company is blocking this port no.

if yes then where can i change the port no. settings..??

pls help...

thanks

Comments

  • Hi,

    Go to this file:
    \\sahi\config\sahi.properties
    You will find the line 'proxy.port=9999' (without quotes)
    Here you can change the port.

    Regards,
    Pankaj.
  • i have a situtaion here. the intranet site i am trying to access works only with particular IP address and port no.

    i chjanged the port no. of sahi which the website is using... but if i change the IP address to my local system...
    then the site does not works..
  • Which ones are you changing in sahi.properties?

    Are you changing:
    proxy.port=9999

    Or

    # Use external proxy server
    ext.proxy.enable=false
    ext.proxy.host=localhost
    ext.proxy.port=5000
  • pranitapranita Members
    edited August 2008
    im changing proxy.port = 9999..... i change it to port 80....

    which one should i change.. and wht will happen if i have proxy.port = 9999 and also at the same time i have ext proxy set as wht ever i wanted....?? which one will sahi refer to..
  • Okay, it sounds like you need to set the ext.proxy info.

    Here's how it works:
    Browser -> Sahi -> Proxy

    To use the web app normally, you would point the browser to the proxy for your network. In the case, Sahi gets slipped in between them.

    Use the regular Sahi settings in your browser -- localhost and port 9999 -- but then set the sahi.properties to the following so Sahi knows where to send the traffic:

    ext.proxy.enable=true
    ext.proxy.host=<the IP of the target system>
    ext.proxy.port=<the port of the target system>
Sign In or Register to comment.