Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Im developing a website that uses a facebook app that only works when the site is externally accessible. So when the site is on a server everything works fine. When im developing locally the app doenst work. How can I make my local development environment externally accessible?

Im using MAMP and my home ISP is Sky.

Ive tried the following from a tutorial but I dont really know if im on the right track or not. Ive registered for an account with http://dyn.com/ and set up a hostname MY-HOST-NAME.dyndns-at-work.com. When I navigate to MY-HOST-NAME.dyndns-at-work.com in my browser I can see the router's start page. However when I look at the url 'externally' with hidemyass.com the message I get is 'The requested resource could not be loaded.'.

As I understand (Im not sure that I do), I need to make my router externally accessible which I was trying to do with the steps above. Then I need to direct the webpage requests to my computer to see it's localhost. Is this at least correct?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

You've setup dyndns. If you open whatismyip.com, and if you ping to your personal dyndns address, you should see the same ip address. I don't know why you see the page of your router. That sounds like a security problem. The router should not show anything, because it should not be possible to access the router admin via an outside ip address. Maybe you've set the router to allow this, I think it's not good practise. Maybe your provider has done this?

You need to set portforwarding in your router. The router should send traffic from the outside for port 80 (HTTP) to your computer, or to the (local) IP address of your computer, whatever port MAMP is using for HTTP. Now it just ignores that traffic. Your computer firewall should allow this traffic, but it probably does already.

  • Computer from outside world sends request to your IP via HTTP, port 80
  • Router receives request and sees it has portforwarding for port 80
  • Router forwards traffic to computer 192.168.1.22 (your local computer ip address), port 8888
  • Local computer receives request at port 8888, and sends it to MAMP Apache
share|improve this answer
    
"You've setup dyndns. If you open whatismyip.com, and if you ping to your personal dyndns address, you should see the same ip address" I can see my IP address with whatismyip.com, what should this be the same as? –  jdln Nov 20 '13 at 11:43
    
I only see the router's page when I type in my IP address into the browser locally. When I enter it with hidmyass (effectively externally) then there is no page. Is this a security issue? You said "it should not be possible to access the router admin via an outside ip address" but its not. –  jdln Nov 20 '13 at 11:45
    
Im trying to set port forwarding in the router from these instructions: helpforum.sky.com/t5/Broadband-Setup-Connection-WiFi/… How do I find out what my start and finish port should be from this step: helpforum.sky.com/t5/image/serverpage/image-id/… –  jdln Nov 20 '13 at 11:49
    
It might depend on the browser. It knows its outside ip address and might catch local traffic to that. If you cannot access the router admin via an outside ip address, then it's OK. –  SPRBRN Nov 20 '13 at 11:50
    
Start port for HTTP is 80, from the outside world. MAMP may use 8888. If you use something like localhost:8888 for opening MAMP pages, then it's 8888. With ipconfig (Windows) or ifconfig (MAC/Linux) you can see what ip address your computer has in the local network. –  SPRBRN Nov 20 '13 at 11:52
show 5 more comments

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.