Skip to content

Is it possible to change listening ports? #1425

Answered by yorek
yorek asked this question in Q&A
Discussion options

You must be logged in to vote

While there are no specific configuration options in Data API builder at the moment, since it is a regular .NET Core application, you can use the ASPNETCORE_URLS variable to set the desired listening address and ports, as explained here:

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-6.0#url-prefixes-1

With PowerShell, for example, you can do something like:

$env:ASPNETCORE_URLS="http://localhost:8080;https://localhost:8081"

if you are on Linux, instead:

export ASPNETCORE_URLS="http://localhost:8080;https://localhost:8081"

and the start Data API builder as usual via

dab start

and it will be listening on port 8080 and 8081

Replies: 6 comments 7 replies

Comment options

yorek
Apr 9, 2023
Maintainer Author

You must be logged in to vote
4 replies
@fgbustoa
Comment options

@yorek
Comment options

yorek Apr 9, 2023
Maintainer Author

@ClaudioG64
Comment options

@yorek
Comment options

yorek Jan 4, 2024
Maintainer Author

Answer selected by yorek
Comment options

You must be logged in to vote
2 replies
@acolville
Comment options

@seantleonard
Comment options

Comment options

You must be logged in to vote
1 reply
@seantleonard
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants