.NET public access
I hosted my .net app but idk how i can access it through the url

18 Replies
what does it say when you open the url

what does it say in the runtime log

try
curl localhost:5000, it could be that your app is not broadcasting on 0.0.0.0, just on localhost
I am sure this isn't the case but still worth checking, is the port on the service the same as the port the application is running off?
if that's the case, try changing
host to 0.0.0.0 somewhere - https://github.com/zeropsio/recipe-dotnet/blob/main/appsettings.json#L10-L17
yes, log says 5000 and subdomain contains 5000, it will likely be the hostAh alright 🫡
this is the source
GitHub
GitHub - jasserhouimli/testdeploy
Contribute to jasserhouimli/testdeploy development by creating an account on GitHub.
i tried it :(, same issue
I don't work with .NET, but can't this overwrite the value somehow during build:
testbackend/Properties/launchSettings.jsonor at least it now listens on 0.0.0.0 properly, the app itself still return 404

To listen on both ipv4 and ipv6, the correct solution is:
"Url": "http://[::]:5000"the other problem was that it was internally redirecting to https https://github.com/fxck/testdeploy/commit/41feda20ef24425c3be6d64a3c9d96c6b13d91fc
on zerops it runs behind a proxy with ssl termination, so no need for that (or it should be configurable)
https://dotnet-1a1e-5000.prg1.zerops.app/weatherforecast now it works
tysm ❤️