How do I set up a Minecraft Server

I want to host a Minecraft server where I cannot Port Forward. How do I do it?

Here are some links which can help you setup the server.

Bedrock Edition:

Java Edition:

Thank you for the video, it helped me a lot.