How do i open Port 80

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
minty_22
Level 2
Level 2
Posts: 97
Joined: Sat Nov 05, 2016 2:07 pm

How do i open Port 80

Post by minty_22 »

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
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.
minty_22
Level 2
Level 2
Posts: 97
Joined: Sat Nov 05, 2016 2:07 pm

Re: How do i open Port 80

Post by minty_22 »

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
Locked

Return to “Networking”