Solved

Indicium port 5000 setting

  • 19 December 2022
  • 3 replies
  • 59 views

Userlevel 2
Badge +5

Hi everyone,

We want to run our end application with Indicium running as a service without IIS, it’s default available at port 5000

Is it possible to set it to another port as it may conflict with other services. 

icon

Best answer by Dick van den Brink 20 December 2022, 08:41

View original

This topic has been closed for comments

3 replies

Userlevel 4
Badge +2

You can change the port to 5002 for example with the following command:

dotnet .\Indicium.dll --urls=http://*:5002

Let me know if it helps! 

Userlevel 2
Badge +5

Wow @Dick van den Brink , thanks, this works! Do you know if this can be set in the appsettings.json or anything else? 

Could not find anything in documentation or community. Now I’m curious if there are more indicium.dll startup parameters :-)

Userlevel 4
Badge +2

We use .NET Core with the Kestrel webserver.

It seems you can also change it from your appsettings.json with this configuration:

  "Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://*:5007"
}
}
}

More configuration options are here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?source=recommendations&view=aspnetcore-7.0#replace-the-default-certificate-from-configuration

And some others are documented here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/options?view=aspnetcore-7.0

But I would not recommend changing to much settings - as it might have side effects and might make troubleshooting of issues more difficult (if it is caused by these kind of settings).