Server Hosting
Linux Server Hosting
Create (self-contained)build of your server, navigate to your solution folder, and run the command below. It will generate a publish folder under {your solution}/bin/Release/net5.0/linux-x64/publish copy publish folder and upload it to your server.
dotnet publish --self-contained -c Release -r linux-x64
2. Once your app is uploaded to the server, open the terminal window and execute the following command. It will grant execute permission to your app. Note* run this command after navigating to the build folder.
chmod 777 ./appname
3. Run your application
./appname
Windows Server Hosting
Create (self-contained) build of your server, navigate to your solution folder, and run the command below. It will generate a publish folder under {your solution}/bin/Release/net5.0/win10-x64/publish copy publish folder and upload it to your server.
dotnet publish -c Release -r win10-x64
2. Add inbound/outbound rules of ports at your server is listening

3. Run your server as administrator
Last updated
Was this helpful?