pinkfloydim
Posts: 6
Joined: Fri Aug 14, 2015 9:46 pm

Port Forwarding to Pie

Fri Aug 14, 2015 9:52 pm

Hi There

I have setup my router to port forward on port 8080, and am running apache on the pie.

When I type address of pie, web site loads all good.

If I try to access my pie with : public ip:8080, always fails.

I setup my mac to do a port forward on port 8888, using MAMP, and all good.

Can't work out why it won't port forward to the pie.

Any ideas.

Thanks.

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Port Forwarding to Pie

Sat Aug 15, 2015 3:30 am

Is the Pi listening on 8080? The default for Apache is 80.

Have you either configured Apache to listen on 8080, or your router to forward incoming 8080 to 80 on the Pi?

pinkfloydim
Posts: 6
Joined: Fri Aug 14, 2015 9:46 pm

Re: Port Forwarding to Pie

Sat Aug 15, 2015 9:09 am

Hi There

/etc/apache2/ports.conf:

NameVirtualHost *:80
NameVirtualHost *:8080
Listen 80
Listen 8080

/etc/apache2/sites-enabled/000-default:

<VirtualHost *:80 *:8080> //line 1

Running locally:
As when I load the ip address of my public location it just loads the router screen, and not the web site?

Over internet:
And fails to load a screen when run on 3G on my phone.

regards

klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Port Forwarding to Pie

Sat Aug 15, 2015 12:35 pm

Turn off the remote access feature of your router or change the port number for that. You really should not have remote access enabled for security reasons.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

pinkfloydim
Posts: 6
Joined: Fri Aug 14, 2015 9:46 pm

Re: Port Forwarding to Pie

Sat Aug 15, 2015 10:24 pm

Hi There

I have checked my router, and remote management is off, so no access to it from the outside world.

Can only login locally.

regards

Return to “Troubleshooting”