BruceNaylor
Posts: 13
Joined: Sat Nov 15, 2014 5:28 pm
Location: Swindon, UK

Port 80

Mon Dec 05, 2016 9:18 am

Hi All,

I have a 3rd party http server on a Pi 3/Jessie, running on the cmd line when logged in as pi, that is happy serving to port 8080, but not port 80.

Scanned the web, saw that Linux only allows serving of ports below 1024 with root privileges, so ran the server with sudo, but no joy. I then started hunting around the web some more to understand why, and just got plain confused.

Would someone be kind enough to point me in the right direction please?

Best regards

Bruce.
Any landing you can walk away from is a good landing in my book.

User avatar
RaTTuS
Posts: 10793
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Port 80

Mon Dec 05, 2016 9:53 am

you are going to give us more info
what server
how are you starting it
what error messages does it come up whit
what tutorials are you following
have you done the correct sacrifice in the right order {CBB]
are there any other servers running on the ports you want to use
anything else that may be relevant
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

BruceNaylor
Posts: 13
Joined: Sat Nov 15, 2014 5:28 pm
Location: Swindon, UK

Re: Port 80

Mon Dec 05, 2016 5:38 pm

Found a solution: Redirect port 80 calls to user app handing port 8080 connections ...

"sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080" seems to do the trick.

Bruce.
Any landing you can walk away from is a good landing in my book.

Return to “Networking and servers”