Page 1 of 1

Public URL does not work when connected to local network

PostPosted: Wed Feb 08, 2017 3:35 pm
by mcleanap
The public URL i Have registered works fine when I am not connected to my internal network. For example, if I am home, connected to wifi, http://apm.subsonic.org will fail - ends up resolving to an IP address not even in my available IP addresses (192.168.122.1:4040). My range is 192.168.1.100 - 192.168.1.200.

My subsonic internal IP works fine (192.168.1.200:4040).

If I turn off wifi, and just use LTE, it works as advertised.

Anyone have an idea what is happening?

Re: Public URL does not work when connected to local network

PostPosted: Sun Feb 12, 2017 9:54 am
by TheStretchedElf
Noticed this myself yesterday when neither my ipad or fire tv would connect. Had to manually change the url to the local version.

Re: Public URL does not work when connected to local network

PostPosted: Sun Feb 12, 2017 10:33 am
by toolman
@mcleanap
Check if your website is online by using http://www.downforeveryoneorjustme.com/
Enter your apm.subsonic.org adress.
Click "Just me"
The site will say your domain is online so you have to click on your domainname.
If your domain is online you will be directed to your subsonic server. If it's not you will get a "This page can't be displayed" error.
Perhaps rebooting your router will solve the problem.

Re: Public URL does not work when connected to local network

PostPosted: Mon Feb 13, 2017 5:16 am
by kayzlot1
You have port forwarding set up I imagine?

Re: Public URL does not work when connected to local network

PostPosted: Wed Feb 22, 2017 2:59 am
by mcleanap
Yes port forward is on. I can connect when I'm outside my own network fine. The problem is when I'm connected to wifi inside my network. It's odd. It resolves to an incorrect internal ip address

Re: Public URL does not work when connected to local network

PostPosted: Wed Feb 22, 2017 9:11 am
by toolman
What OS are you using?
In windows an "ipconfig /flushdns" might solve the problem.

Re: Public URL does not work when connected to local network

PostPosted: Thu Feb 23, 2017 12:02 pm
by Tak-MK
I have the same issue, I'm using the LAN IP until I solve it.

Re: Public URL does not work when connected to local network

PostPosted: Fri Mar 03, 2017 3:47 am
by mcleanap
Anyone solve this issue? I'm thinking it has something to do with how my unraid server is handling the routing. It was working fine on the older version of unraid. I tried the subsonic docker and plugin and same issue.

Sent from my SM-G930W8 using Tapatalk

Re: Public URL does not work when connected to local network

PostPosted: Tue Mar 07, 2017 4:49 pm
by Tak-MK
Okay guys, solved. You have to point (either in hosts file or DNS) your domain to the machine which is doing the reverse proxy. :D

Re: Public URL does not work when connected to local network

PostPosted: Tue Mar 14, 2017 2:45 am
by mcleanap
Tak-MK wrote:Okay guys, solved. You have to point (either in hosts file or DNS) your domain to the machine which is doing the reverse proxy. :D

Could you explain a bit more? I know how to update my hosts file on windows but I'd prefer a network fix as I play on multiple devices.

Sent from my SM-G930W8 using Tapatalk

Re: Public URL does not work when connected to local network

PostPosted: Tue Mar 14, 2017 8:37 am
by toolman
You really shouldn't have to mess with hosts-files to get this fixed.
In windows you might try to run "ipconfig /flushdns" to fix the problem.
If that doesn't solve it than it's your DNS-server that's the problem.
Most of you have a more or less standard network setup were your router is DHCP-server, DNS-server and Gateway.
For some reason your DNS-server doesn't understand anymore that your public URL in the end refers to a machine inside your local lan.
I just set up a new Subsonic server, registered it with a public Subsonic Url and within 3 minutes my router automatically points me to my new Subsonic server using a local ip address when I use the public url.
So If i were you I'd have a snoop around in my router to find if there is a way to adjust your NAT-tables.