I am running a small test server from my linux mint desktop
here is my setup:
linux mint(with virtual box installed)
--centos server
-windows server
i need to open port 80 so on my linux machine so when someone types my ip address in the browser it goes to my website,
for some reason if i run virtualbox as root, it works! i type my ip and i see my website,
but i heard its not good to run things in root,
if i run it not in root, i can't access my website, so i need to open port 80
i don't have a router, my pc is connected straight to the modem
what is more weird is if i change the listen port to some high number, it works, example: 11000, but then i have to type, 67.123.123.123:11000 to access my server
it typed in sudo ufw show listening, and i dont see port 80
how can i open port 80, if not i have no choice but to run virtualbox in root
i assume i have to put this somewhere?
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
How do i open Port 80
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
How do i open Port 80
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: How do i open Port 80
well i read online
"First you can not forward privileged ports (ports <= 1000) in Linux as a normal user."
well thats stupid, why cant we, i';ll just make a user and make him root
"First you can not forward privileged ports (ports <= 1000) in Linux as a normal user."
well thats stupid, why cant we, i';ll just make a user and make him root