How to change port

How do I change a Ford 80 or 443 to an 8000?
In my house there are only 8000 open
and i did’t use apache

Normally this is configured in the web server…

What do you mean by that? Do you have no control over your router. Does the ISP block ports 80/443?

What do you use? We need details to be able to help…