Page 1 of 2

Personal address is registering wrong address

PostPosted: Sat Apr 27, 2013 3:41 pm
by jthg
It appears that subsonic is registering the wrong address for my personal .subsonic.org address. It is registering a private network IP address. How do I get subsonic to bind and only use one adapter?

Here is my setup:
1 ethernet adapter hooked up to HD Homerun
1 wireless adapter hooked up to the internet

My network looks like:
>ipconfig

Windows IP Configuration
...

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : beer
IPv4 Address. . . . . . . . . . . : 192.168.1.71
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Autoconfiguration IPv4 Address. . : 169.254.110.209
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :

When I try to go to worksforbeer.subsonic.org, it transfers to the 169.* address. Obviously, this does not work for any computer other then my localhost. I have tried editing subsonic-service.exe.vmoptions to bind to 192.* address. That does keep access limited to that ip address (and, no longer 127.* address or 169.*) But, it appears that it is still binding to the 169.* address. Any suggestions?

Re: Personal address is registering wrong address

PostPosted: Sun Apr 28, 2013 12:27 am
by gurutech
Looks like you are on two different "networks".

What is this "HD Homerun" you are talking about?

I tried going to your site, and got this in return: http://108.73.0.241:4040/
which resulted in "page not found".

Check port forwarding on your router to make sure port 4040 is going to the 192.168.x.x address and you should be good.

Re: Personal address is registering wrong address

PostPosted: Mon Apr 29, 2013 3:19 am
by GJ51

Re: Personal address is registering wrong address

PostPosted: Mon Apr 29, 2013 3:36 am
by GJ51
jthg wrote:It appears that subsonic is registering the wrong address for my personal .subsonic.org address. It is registering a private network IP address. How do I get subsonic to bind and only use one adapter?

Here is my setup:
1 ethernet adapter hooked up to HD Homerun
1 wireless adapter hooked up to the internet

My network looks like:
>ipconfig

Windows IP Configuration
...

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : beer
IPv4 Address. . . . . . . . . . . : 192.168.1.71
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Autoconfiguration IPv4 Address. . : 169.254.110.209
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :

When I try to go to worksforbeer.subsonic.org, it transfers to the 169.* address. Obviously, this does not work for any computer other then my localhost. I have tried editing subsonic-service.exe.vmoptions to bind to 192.* address. That does keep access limited to that ip address (and, no longer 127.* address or 169.*) But, it appears that it is still binding to the 169.* address. Any suggestions?



Autoconfiguration IPv4 Address. . : 169.254.110.209 Indicates that your not getting an ip address from a router(?) as any 169.254.xxx.xxx address is a self-assigned APIPA address that a computer will use as a DHCP failover mechanism.

http://compnetworking.about.com/cs/prot ... _apipa.htm

Your setup seems a bit strange or poorly described. What are you using for routing, or are you just direct connecting a cable modem or some other ISP provided device to a PC with more than one network adapter?

If you're not using a router or some other DHCP device then you would have to assign ip addresses within the adapter settings of each nic on the PC. Sounds strange in any event as most users using Subsonic would have some of the basics of a home network in place, such as an ISP provided access point (that may or may not act as a router and a wireless access point), a router that does DHCP DNS ( if those functions are not part of the ISP provided device) and that also does the port forwarding.

You will need to be far more descriptive regarding how your equipment is configured if anyone is going to have any chance of helping you sort this out.

Re: Personal address is registering wrong address

PostPosted: Mon Apr 29, 2013 2:34 pm
by jthg
Sorry about the delay... I thought I had it set up to notify me about replies. Hopefully, now the board will.

I really don't think that subsonic is registering the correct IP address:
[jeising@rocs ~]$ curl -v http://worksforbeer.subsonic.org/
* About to connect() to worksforbeer.subsonic.org port 80 (#0)
* Trying 66.49.215.227...
* connected
* Connected to worksforbeer.subsonic.org (66.49.215.227) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.27.0
> Host: worksforbeer.subsonic.org
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: Apache-Coyote/1.1
< Location: http://169.254.110.209:4040/
< Content-Language: en-US
< Content-Length: 0
< Date: Mon, 29 Apr 2013 14:21:54 GMT
< Connection: close
<
* Closing connection #0

The subsonic box has a physical cat-5 network connection to the HD Homerun box. This connection does not have access to a DHCP server, so it just grabs the default ip address as you describe. This network adapter is private and does not have access to the internet.

The other adapter is wireless and connects to a Gargoyle router.

Does this network topology make sense to you all?

The box is dual boot and the exact set up works in Linux. Tonight, I will assign a static IP address to that other adapter and see if it works. Thanks for the tips!

Re: Personal address is registering wrong address

PostPosted: Mon Apr 29, 2013 3:01 pm
by jthg
FYI, I made the change to a static IP address, and it appears to be using the correct IP for the HTTP 302 response now. Now, the issue might just be a simple port forward. I will investigate that tonight.

THANKS for the suggestion!

Re: Personal address is registering wrong address

PostPosted: Tue Apr 30, 2013 12:17 am
by jthg
Kind of working - more help would be appreciated!

Currently, the personal address is working from OUTSIDE my lan, but from INSIDE it returns my other adapter's IP address. Port forwarding is not working.

I manually updated port forwarding on my router - now that is working. However, from inside my LAN, the http://worksforbeer.subsonic.org is not forwarding correctly.

If I could be so bold as to guess why... I think subsonic is thinking my IP address is the 169.* address. Then, it uses that IP address to attempt to uPnP open the port. That obviously fails because it is the wrong address. Then, it incorrectly sets the personal address within my LAN to be that same ip address. So, I think if there was a way to instruct Subsonic to use a specific IP address, both functions would start working... hopefully?!

Thoughts?

Re: Personal address is registering wrong address

PostPosted: Tue Apr 30, 2013 2:03 am
by GJ51
This is probably due to the router not being able to handle what is called a loopback address. There a few ways around this. First you can make entries in the local hosts file on your internal machines that would use that to send the request to the server, or the easy way would be to just use the internal ip:port for the internal address of Subsonic. e.g. 192.168.1.71:4040

Either method should work.

Re: Personal address is registering wrong address

PostPosted: Tue Apr 30, 2013 2:41 am
by gurutech
Mine works the same way... If I use my XXXXXXX.subsonic.org address, I can access it externally with no problems, but accessing it internally will resolve to my local IP address.

My workaround is to get a no-ip.com DynDNS address, and use that....

Re: Personal address is registering wrong address

PostPosted: Tue Apr 30, 2013 3:08 am
by GJ51
Best answer is a new router ... :mrgreen:

Re: Personal address is registering wrong address

PostPosted: Tue Apr 30, 2013 3:13 am
by alphawave7
GJ51 wrote:Best answer is a new router ... :mrgreen:


THIS. Give us a budget, and we'll be happy to spend your money! :P

Re: Personal address is registering wrong address

PostPosted: Tue Apr 30, 2013 3:38 am
by GJ51
A man went to church every day for several years. Every morning he would kneel at the altar after morning mass and pray the same prayer, "Lord, please help me if only I could win the lottery I would be happy." More years passed and still it was the same prayer ... finally he heard God reply ... "I'm pretty sure you'll have to buy a ticket first if you expect me to help you."

One day no work, one day no eat.

Re: Personal address is registering wrong address

PostPosted: Tue Apr 30, 2013 3:59 am
by jthg
GJ51 wrote:This is probably due to the router not being able to handle what is called a loopback address.


I am pretty sure that this is not a router issue. For one, the personal address works when I boot the machine into Linux.

I think the two ip addresses are registered with the personal address. One is the external ip address and the other is the ip address that Subsonic thinks the box is for the LAN. I think for external requests for worksforbeer.subsonic.org, the external address is returned. For requests from my external address, the internal address is returned. THAT address is being determined incorrectly. It is getting my hdhomerun network's address - not my wireless lan address:

Code: Select all
$ curl -v http://worksforbeer.subsonic.org
* About to connect() to worksforbeer.subsonic.org port 80 (#0)
*   Trying 66.49.215.227...
* connected
* Connected to worksforbeer.subsonic.org (66.49.215.227) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.27.0
> Host: worksforbeer.subsonic.org
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: Apache-Coyote/1.1
< Location: http://169.254.1.10:4040/
< Content-Language: en-US
< Content-Length: 0
< Date: Tue, 30 Apr 2013 03:52:29 GMT
< Connection: close
<
* Closing connection #0


That IP address is one of the ip addresses assigned to that box. It should be returning either my external address or the 192. address for the wireless adapter.

Re: Personal address is registering wrong address

PostPosted: Tue Apr 30, 2013 4:20 pm
by jthg
To confirm, the personal address IS giving the wrong address from my internal LAN. From external, it works:

Code: Select all
$ curl -v http://worksforbeer.subsonic.org
* About to connect() to worksforbeer.subsonic.org port 80 (#0)
*   Trying 66.49.215.227...
* connected
* Connected to worksforbeer.subsonic.org (66.49.215.227) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.27.0
> Host: worksforbeer.subsonic.org
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: Apache-Coyote/1.1
< Location: http://108.73.0.241:4040/
< Content-Language: en-US
< Content-Length: 0
< Date: Tue, 30 Apr 2013 16:16:26 GMT
< Connection: Keep-Alive
<
* Connection #0 to host worksforbeer.subsonic.org left intact
* Closing connection #0


I think my router is fine. Is there a way to tell Subsonic to use a specific internal address for the personal address? (the bind ip appears to only affect how the server listens) If not, I will take the no-ip.org advice.

Re: Personal address is registering wrong address

PostPosted: Wed May 01, 2013 4:09 am
by alphawave7
jthg wrote:To confirm, the personal address IS giving the wrong address from my internal LAN. From external, it works:

Code: Select all
$ curl -v http://worksforbeer.subsonic.org
* About to connect() to worksforbeer.subsonic.org port 80 (#0)
*   Trying 66.49.215.227...
* connected
* Connected to worksforbeer.subsonic.org (66.49.215.227) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.27.0
> Host: worksforbeer.subsonic.org
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: Apache-Coyote/1.1
< Location: http://108.73.0.241:4040/
< Content-Language: en-US
< Content-Length: 0
< Date: Tue, 30 Apr 2013 16:16:26 GMT
< Connection: Keep-Alive
<
* Connection #0 to host worksforbeer.subsonic.org left intact
* Closing connection #0


I think my router is fine. Is there a way to tell Subsonic to use a specific internal address for the personal address? (the bind ip appears to only affect how the server listens) If not, I will take the no-ip.org advice.


Routers normally push resolved addresses to local IP's if the destination is indeed local(best path), so that's expected. What isn't expected is the default to the auto-configured (bad) IP. First thing I'd try is ipconfig /flushdns, and if that doesn't work I'd try toggling DNS primary and fallback addys, with router reboots along the way. Less but still likely is a NAT issue, but knowing it works properly in Linux suggests something's hung on the Win side of things. Keep us posted!