Page 1 of 3

cannot access username.yourhda.com from outside my network

Posted: Sat Jul 07, 2012 1:21 pm
by chaosarg
Hi I've been searching for this for hours, and although there are similar topics, I couldn't find any that solves my problem
I'm running Amahi on an Ubuntu 12.04 system, Amahi is configured as DHCP and DNS. DHCP is turned off on Router, the Router is set to get DNS automatically from the ISP (I'm not sure if that's the suggested setting).
Everything works perfectly inside my network, I can access Apps, Shares & Dashboard.
The problem is when I try to Access username.yourhda.com from outside my home network, after a while I get the message "The server is not responding". Also when I Ping username.yourhda.com or the IP address I get 100% packet lost.
Note: When I first installed Amahi I tried to disable DHCP on Amahi but it wasn't staying off so I went the other route and enabled it on Amahi and disabled it on the Router.
Not sure what am I doing wrong here

Re: cannot access username.yourhda.com from outside my netwo

Posted: Sat Jul 07, 2012 2:19 pm
by bigfoot65
You have to forward internal port 80 on your HDA to an external port. The Dynamic DNS username.yourhda.com is not automatically on withour that step.

There is some guidance here that might help.
http://wiki.amahi.org/index.php/Hosting_a_website

Re: cannot access username.yourhda.com from outside my netwo

Posted: Sat Jul 07, 2012 3:16 pm
by chaosarg
Hi, thanks for your reply.
I had forwarded ports 80 and 443 on my router to the Amahi server's IP. I'm not sure if that's what you mean

[ Post made via iPhone ] Image

Re: cannot access username.yourhda.com from outside my netwo

Posted: Sat Jul 07, 2012 3:50 pm
by bigfoot65
Yes, but you have to include the info as shown in the wiki for an app. Currently, only one app can be accessed outside your network per port.

Simply forwarding the ports on the HDA does not expose anything.

Re: cannot access username.yourhda.com from outside my netwo

Posted: Sat Jul 07, 2012 5:20 pm
by chaosarg
ok I just did as the wiki says with one of the apps "ServerAlias username.yourhda.com" but I still get the error (on my phone browser, using 3g no WiFi, it says 502 Bad Gateway) also if I just wanted to access just the Amahi Dashboard do I still need to do this?

Re: cannot access username.yourhda.com from outside my netwo

Posted: Sat Jul 07, 2012 5:29 pm
by bigfoot65
Did you change username to match HDA on amahi.org? Could be a firewall issue. Apps don't work from dashboard remotely. Best to use VPN.

[ Post made via Android ] Image

Re: cannot access username.yourhda.com from outside my netwo

Posted: Sat Jul 07, 2012 5:39 pm
by chaosarg
yes I'm using my actual Amahi.org username, the only firewall running on my network that I can think of is the one that comes with the Router (Netgear WNDR3700) which I didn't change, unless Ubuntu is blocking me.
I'm trying to configure the VPN but I can't get it to work. I've already opened port 1194 on the router, but when I go to amahi.org and check it on the VPN checker it says "Inactive".
On the router should I set DNS Server 1 and 2 to the hda IP or leave on "Get from ISP"?

Re: cannot access username.yourhda.com from outside my netwo

Posted: Sat Jul 07, 2012 6:08 pm
by bigfoot65
Ok. Leave DNS alone for now. Might wanna check that your client is getting the DNS from the HDA and not the router.

As for the VPN checker, it may not always be right. I have seen a few that says inactive, but it was still working.

Maybe run the Network Troubleshooter and see if it yields any clues.

http://wiki.amahi.org/index.php/Network_troubleshooting

Re: cannot access username.yourhda.com from outside my netwo

Posted: Sun Jul 08, 2012 12:14 am
by wvdlee
I'm trying to configure the VPN but I can't get it to work. I've already opened port 1194 on the router, but when I go to amahi.org and check it on the VPN checker it says "Inactive".
On the router should I set DNS Server 1 and 2 to the hda IP or leave on "Get from ISP"?
Did you do the Openvpn one-click-install? without this install the vpn will not work. It used to work out of the box, but apparently did become an option now.

I do not know a lot about DNS servers, but I think you should not change much on your router, only disable DHCP and forward port 1194 UDP to the internal IP of your HDA

Re: cannot access username.yourhda.com from outside my netwo

Posted: Sun Jul 08, 2012 7:32 am
by bigfoot65
That is a good point. Ubuntu does not have OpenVPN installed out of the box. Same is true for SSH. The app has to be installed to get the capability.

We probably need to mention that in the instructions.