Port forwarding, which public port? Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
glasblazer
Posts: 3
Joined: Fri Mar 12, 2021 10:45 am

Port forwarding, which public port?

Post by glasblazer »

Hi,

I can't get the outside world to connect to my DietPi server, because I do not know what public port and internal port to use.

I can connect on my local network through the static IP Address, and I have assigned a public IP Address through my internet provider. But I seem to be stuck.

Do you guys know which ports I should fill out when port forwarding and also which protocol I should select (TCP , TCP/ UDP or UDP)?

Thanks!
User avatar
Joulinar
Posts: 5116
Joined: Sat Nov 16, 2019 12:49 am

Re: Port forwarding, which public port?

Post by Joulinar »

Hi,

this depends on the application you like to reach from internet. Each application has a different port that would need to be open on your router.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
glasblazer
Posts: 3
Joined: Fri Mar 12, 2021 10:45 am

Re: Port forwarding, which public port?

Post by glasblazer »

Hi Joulinar,

Ok thanks. I did not know it had to be application specific.

I want to host a website. Which port would that be then? 80 maybe?

Thanks!
User avatar
Joulinar
Posts: 5116
Joined: Sat Nov 16, 2019 12:49 am

Re: Port forwarding, which public port?

Post by Joulinar »

usually it should be 80 and 443.

80 would be normal http while 443 is https.

In past I created a how-to for setup secure connection for a NextCloud web site. viewtopic.php?p=22271#p22271

Basically it should work same for other web sites as well
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
glasblazer
Posts: 3
Joined: Fri Mar 12, 2021 10:45 am

Re: Port forwarding, which public port?

Post by glasblazer »

Hi Joulinar,

Thank you very much! Port 80 did the trick. I will now go through your tutorial as well to get a secure connection.
Post Reply