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.
Details on finding and editing your Customer App Settings file can be found here.
Edit the settings file for FastClose Server to add the Kestrel section at the bottom if it's not there. Don't forget to add a comma after the closing brace of the previous AuthenticationOptions section, if present. If the Kestrel section is already present, uncomment the commented out parts.
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.