1. mathews rutto
  2. SnapDevelop
  3. Sunday, 21 February 2021 10:46 AM UTC

Hi,

Need help, am learning SnapDevelop2021 beta

when i run SnapDevelop2021 beta the app start well and i get below response.

...Now listening on : http://0.0.0.0:5009

i want to be change to http://myip:5009

 

Was able to change IIS (Default website) to run using the myip

Attachments (1)
Accepted Answer
Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Monday, 22 February 2021 01:06 AM UTC
  2. SnapDevelop
  3. # Permalink
0
Votes
Undo

Hi Mathews,

By default, ASP.NET Core binds to:

  • http://localhost:5000
  • https://localhost:5001 (when a local development certificate is present)

Specify URLs using the:

  • ASPNETCORE_URLS environment variable.
  • --urls command-line argument.
  • urls host configuration key.
  • UseUrls extension method

Refer to:

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.1#endpoint-configuration

You can also find some good examples on Google:

https://andrewlock.net/5-ways-to-set-the-urls-for-an-aspnetcore-app/

Regards,

Logan

Comment
It sounds like a firewall issue. Either your laptop is not allowing outgoing traffic on the port (5009) or more likely your desktop pc isn't allowing incoming connections on that port.
  1. Daryl Foster
  2. Wednesday, 24 February 2021 00:17 AM UTC
@Daryl Foster, well said, the issue was firewall. This has disturbed me for some days now. Thank you a lot.
  1. mathews rutto
  2. Wednesday, 24 February 2021 09:49 AM UTC
No worries, I'm glad it's sorted.
  1. Daryl Foster
  2. Thursday, 25 February 2021 00:59 AM UTC
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.