Public URL does not work when connected to local network

Need help? Post your questions here.

Moderator: moderators

Public URL does not work when connected to local network

Postby mcleanap » Wed Feb 08, 2017 3:35 pm

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?
mcleanap
 
Posts: 18
Joined: Tue Feb 14, 2012 1:57 am

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

Postby TheStretchedElf » Sun Feb 12, 2017 9:54 am

Noticed this myself yesterday when neither my ipad or fire tv would connect. Had to manually change the url to the local version.
TheStretchedElf
 
Posts: 28
Joined: Sat Apr 13, 2013 8:00 am

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

Postby toolman » Sun Feb 12, 2017 10:33 am

@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.
Last edited by toolman on Mon Feb 13, 2017 11:21 am, edited 1 time in total.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands

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

Postby kayzlot1 » Mon Feb 13, 2017 5:16 am

You have port forwarding set up I imagine?
kayzlot1
 
Posts: 24
Joined: Tue Feb 09, 2016 11:59 pm

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

Postby mcleanap » Wed Feb 22, 2017 2:59 am

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
mcleanap
 
Posts: 18
Joined: Tue Feb 14, 2012 1:57 am

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

Postby toolman » Wed Feb 22, 2017 9:11 am

What OS are you using?
In windows an "ipconfig /flushdns" might solve the problem.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands

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

Postby Tak-MK » Thu Feb 23, 2017 12:02 pm

I have the same issue, I'm using the LAN IP until I solve it.
User avatar
Tak-MK
 
Posts: 107
Joined: Thu Dec 22, 2016 3:27 pm

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

Postby mcleanap » Fri Mar 03, 2017 3:47 am

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
mcleanap
 
Posts: 18
Joined: Tue Feb 14, 2012 1:57 am

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

Postby Tak-MK » Tue Mar 07, 2017 4:49 pm

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
User avatar
Tak-MK
 
Posts: 107
Joined: Thu Dec 22, 2016 3:27 pm

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

Postby mcleanap » Tue Mar 14, 2017 2:45 am

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
mcleanap
 
Posts: 18
Joined: Tue Feb 14, 2012 1:57 am

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

Postby toolman » Tue Mar 14, 2017 8:37 am

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.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands


Return to Help

Who is online

Users browsing this forum: No registered users and 23 guests