"No free port available in the specified port range" error in log file

View some of the Frequently Asked Questions to our support staff. Included are some tips and tricks making this forum ideal for users getting started with GoAnywhere MFT. Note: Users can reply to existing topics but only our support staff can add new topics to this forum.
1 post Page 1 of 1


User avatar
Posts: 13
Joined: Thu Jul 26, 2018 2:03 pm

Post by Support_Alisa » Wed Aug 29, 2018 12:58 pm

I am seeing a “No free port available in the specified port range” error in my logs.  What could be causing this?


When utilizing GoAnywhere Gateway, you are required to specify a Passive Proxy Port Range for Passive FTP connections.  If you have more incoming connections than available ports, you will see the following error in your logs -
gagateway.log:2018-08-10 09:30:05 AM ERROR No free port available in the specified port range
In order to ensure better connectivity and to remove this error, make your passive port range larger.  You can do this by going to [install directory]/config/gateway.xml.  Update the passiveProxyPortRangeFrom and passiveProxyPortRangeTo fields, adding ports to your range.  By deafault, GoAnywhere Gateway has a range of 2,000 ports.  Always ensure you have enough ports available for the amount of connections your organization expects from clients and trading partners.

Please be sure to check that your FTP service reflects the changes you made in the gateway.xml file. On the GoAnywhere administrator page, navigate to Services -> Service Manager -> FTP -> Edit. Under "Data Connection," select "Passive." In the "Ports" field, insert the port range you specified in the gateway.xml file. If you are using FTPS, please also add these configuration changes to your FTPS service.
Alisa Bohac
Sr Support Analyst
e. [email protected]
p. 1.800.949.4696
w. HelpSystems.com
1 post Page 1 of 1