Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change server listening IP/port on Linux? #16

Closed
ghaberek opened this issue Apr 19, 2019 · 2 comments
Closed

How to change server listening IP/port on Linux? #16

ghaberek opened this issue Apr 19, 2019 · 2 comments

Comments

@ghaberek
Copy link

I already have an Nginx reverse proxy set up on another machine where I can manage all my Let's Encrypt certs in one place. I'd like to use that server to act as the frontend for Remotely which runs on its own machine. How do I make it so that the Remotely listens on *:5000 instead of localhost:5000?

@bitbound
Copy link
Collaborator

There are multiple ways to do it. Here's the documentation: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-2.2#endpoint-configuration

So, for example, in /etc/systemd/system/remotely.service, add the following line:
Environment=ASPNETCORE_URLS=http://*:5000

Hope that helps. :)

@ghaberek
Copy link
Author

That worked perfectly, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants