cancel
Showing results for 
Search instead for 
Did you mean: 

Raspberry Pi server on port 81

ashbees
Newbie
Posts: 2
Registered: ‎23-01-2015

Raspberry Pi server on port 81

I have a PC running a web server on port 80, and static IP address. Everything works fine. I thought I would try running a Raspberry Pi server as well, but am having some trouble.
The Pi has Apache running on port 80 and I can access the internet fine. I can see the server if I type 'localhost' into the Pi web browser.
I configured the router (Technicolor TG582n FTTC ) to translate port 81 to 80 for the Pi server. I thought that in the outside world I would be able to see the Pi web server if I typed <ipaddress>:81 but it's not responding. My firewall is set to 'low'. I've tried having the Pi on cable or wifi, no difference.
Any assistance gratefully received.
Cheers
Steve
5 REPLIES
Community Veteran
Posts: 1,620
Thanks: 22
Registered: ‎29-06-2010

Re: Raspberry Pi server on port 81

Instead of mapping the port in the router, set the server to use port 81 instead, perhaps?
Community Veteran
Posts: 5,594
Thanks: 1,527
Fixes: 35
Registered: ‎16-10-2014

Re: Raspberry Pi server on port 81

Hi,
Have you configured Apache to listen on the interface bound to your LAN?
Community Veteran
Posts: 6,773
Thanks: 258
Fixes: 21
Registered: ‎16-02-2009

Re: Raspberry Pi server on port 81

can you see the server from inside the lan?
i.e. <pi ip> in a browser?
If not then check the server is listening on 0.0.0.0 not 127.0.0.1
Community Veteran
Posts: 1,841
Thanks: 103
Fixes: 6
Registered: ‎21-01-2013

Re: Raspberry Pi server on port 81

What you're trying to do does work, I've done exactly that in the past including the raspberry pi bit -- but different web server.
If it helps these are the port forward / port translation settings I used to configure the TG582n router.
http://npr.me.uk/nprmeuk/pf/
Just checked and the plusnet firewall does not block port 81 when on the low setting. Don't know about port 1080 as used in the above link.
Have you double checked the firewall is set to low?
ashbees
Newbie
Posts: 2
Registered: ‎23-01-2015

Re: Raspberry Pi server on port 81

Thanks for your help, everyone. In fact I had done everything right but the router must have got all confused. I reset it to factory defaults, reassigned the ports and it all worked! I just have to connect my temperature probes and my freezer will be on the net!