Tell me more ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

So I finally got a web server going, except it's only available to my local network, and I'd like to make it public. I have a Dlink dir 615 as a router, my pi's IP address is 192.168.0.14 and my public IP info looks like this

IP Information: xx.xx.xx.xx
ISP:    Xplornet Communications
Organization:   Xplornet Communications
Connection: Broadband
Services:   None Detected
City:   Sherwood Park
Region: Alberta
Country:    Canada

all sounds good except I don't live in sherwood park, I'm about 2 hours.

What do i need to do to make my server public?

My router supports port forwarding, virtual server and DMZ. I'm using an Apache HTTP server.

Thanks but this still doesn't solve my problem; I just want to connect from outside maby once then ill figure put ddns and such but for now it won't connect to anything when I type my explornet IP address in

share|improve this question

4 Answers

Forward port 80 from your router to your Pi, and if you want to SSH from outside, port 22 as well. Be aware that with SSH from outside anyone that can get in can then ssh or access the other devices on your network.

Once you are setup, if your IP pretty much stays the same you can use something like Cloudflare to point a domain at it. If it changes on a daily basis you'll need a service like DynDNS.

share|improve this answer
K so I set my router to forward port 80 to port 80 with my raspberry pi's ip address or whatever but it still just "times out" everytime I type in my external ip address – Spencer Killen Apr 30 at 15:45
Try accessing it and specifying port 80, like xx.xx.xx.xx:80 – George Pearce Apr 30 at 16:06

You will need a service like DynDNS, or get yourself a static IP. Otherwise, you might consider a VPN.

share|improve this answer

It depends whether you want to persistently share your web contents, or you need only episodic public access. For the latter, there's no need to go through the hassle of setting up a DynDNS account and opening forwarding ports in your router.

A pretty easy solution is to use LocalTunnel, which will make your webserver accessible through a domain name such as :

http://8bv2.localtunnel.com

It's very useful for sharing progress of a website you are hosting on your computer.

share|improve this answer

My solution for several systems under dynamic ip is the following:

I have a domain from godaddy Entrydns 1 cron job on my router that is uploading my ip address to entrydns with a token (a token that entrydns provides). And my dns server under my godaddy domain is set to entrydns. Oh and don't forget to portforward :)

If you need I can give you a more detailed step by step guide, but I hope you can figure out this easy process through google :)

share|improve this answer
1  
might be better to provide the more detailed step by step guide anway, especially if it helps others with similar problems. I understand that googling will help, but I guess every question can be answered with google! – kolin Apr 30 at 7:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.