Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


499 posts

Ultimate Geek
+1 received by user: 34


Topic # 151879 8-Sep-2014 17:08
Send private message

Not sure if this sits in this cat. but here goes.

Just playing with a Raspberry Pi as a web server.
Raspbian , lighttpd , MySQL, php etc installed and working fine.

I cant access it via the web. I believe I have done all the checks I can think of, but no joy.
I can access the web server across the internal network and its fully functional.

I have a dynamic dns service via no-ip that forwards to the dynamic IP using DNS Host (A) . I have also tried port 80 forwarding to 8080

It is then accessed via Router, port forwarded to internal static IP address and Port 80

I have tested that the Port 80 is open (Im assuming for that internal IP?) and that it works with both dynamic dns service name and with the IP address of my router.
All tests here suggest the IP and port are accessible.

I have tested the lighttpd on 80 and 8080, both with the same result.

Any words of wisdom?





Create new topic
13920 posts

Uber Geek
+1 received by user: 2471

Trusted
Subscriber

  Reply # 1124558 8-Sep-2014 17:24
Send private message

Port 80 will need to be forwarded from your router's public IP to the R Pi.




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer




499 posts

Ultimate Geek
+1 received by user: 34


  Reply # 1124633 8-Sep-2014 19:02
Send private message

I think I have?


344 posts

Ultimate Geek
+1 received by user: 130

Subscriber

  Reply # 1124676 8-Sep-2014 20:37
Send private message

Try setting up the lighttpd server to listen to something like port 81 or some other port, just not port 80. Then forward that port.
Some routers just don't like, or have problems, port forwarding port 80.



499 posts

Ultimate Geek
+1 received by user: 34


  Reply # 1125119 9-Sep-2014 15:50
Send private message

Unfortunately no.....
I thought it would be relatively easy, but although internet port tools show its open, its not happening

Using either port 80/81, the tool shows its open. When the pi is turned off, it shows as blocked (or unreachable)
It leads me to believe its a pi issue.

Obviously when the pi is working, I can still access it with the local IP, so it is serving the pages.

262 posts

Ultimate Geek
+1 received by user: 23


  Reply # 1125168 9-Sep-2014 16:30
Send private message

What is server.bind set to?



499 posts

Ultimate Geek
+1 received by user: 34


  Reply # 1125173 9-Sep-2014 16:49
Send private message

Sorry for my newbness - how do I check that?

262 posts

Ultimate Geek
+1 received by user: 23


  Reply # 1125191 9-Sep-2014 17:11
Send private message

Should be in /etc/lighttpd/lighttpd.conf



499 posts

Ultimate Geek
+1 received by user: 34


  Reply # 1125248 9-Sep-2014 19:05
Send private message

Theres nothing in there - what should I be trying?

262 posts

Ultimate Geek
+1 received by user: 23


  Reply # 1125331 9-Sep-2014 20:25
Send private message

Hmm, if it was empty I would have assumed it would be available on all interfaces at port 3000...



499 posts

Ultimate Geek
+1 received by user: 34


  Reply # 1125335 9-Sep-2014 20:31
Send private message

Trying Apache now as well, but similar issues. Arrggh....

344 posts

Ultimate Geek
+1 received by user: 130

Subscriber

  Reply # 1125343 9-Sep-2014 21:00
Send private message

Does Raspbian have a firewall?
If so is it set to only allow access from local network?

262 posts

Ultimate Geek
+1 received by user: 23


  Reply # 1125353 9-Sep-2014 21:20
Send private message

Do you have any other OSes around that you could temporarily test port 80 redirects to? e.g. SimpleServer:WWW on Windows.



499 posts

Ultimate Geek
+1 received by user: 34


  Reply # 1125563 10-Sep-2014 09:01
Send private message

Right. It seems I cant access it from behind the same router. If I use 3G, I get the site up and running.
So yes it is working, but means Ill need to test it on localhost.....



Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07


All or Nothing: New Zealand All Blacks arrives on Amazon Prime Video
Posted 2-Jun-2018 16:21


Innovation Grant, High Tech Awards and new USA office for Kiwi tech company SwipedOn
Posted 1-Jun-2018 20:54


Commerce Commission warns Apple for misleading consumers about their rights
Posted 30-May-2018 13:15


IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12


New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17


Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.