This guide applies to all FastClose web services including FastClose Server, Reader Web Server, Worker Service, and Gateway Service, when running as a Windows service, using the built-in Kestrel web server.
If running under IIS, the port number is managed by IIS. See your bindings settings in the IIS Management Console.
This file is called appsettings.customer.json and will be found in the installation directory of the service. If you cannot find this file there then it needs to be created from the template file appsettings.customersettings.json.
For the Reader web app see the page Configuration and Diagnostics.
The endpoints are specified in your customer settings file. For example, to listen on port 8080:
{"Kestrel": {"Endpoints": {"Http": {"Url": "http://*:8080"}}}}
Change the port number to the desired available port and restart the service.
These are the default port numbers:
Service | Default Port Number |
FastClose Server | 5101 |
Worker Service | 5102 |
Reader Web Server | 5103 |
Gateway Service | 5104 |
You can review the logs at the service start up to see which port(s) it is listening on. Typical log output looks like:
17:31:44.428 WRN FastCloseServer: Overriding address(es) 'http://0.0.0.0:5101'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.17:31:50.148 INF FastCloseServer: Listening on address(es): http://0.0.0.0:8080
In the example above the default of 5101 has been overridden and 8080 is being used.