Personal address is registering wrong address

General discussions.

Moderator: moderators

Personal address is registering wrong address

Postby jthg » Sat Apr 27, 2013 3:41 pm

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?
jthg
 
Posts: 8
Joined: Sat Apr 27, 2013 3:14 pm

Re: Personal address is registering wrong address

Postby gurutech » Sun Apr 28, 2013 12:27 am

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.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Personal address is registering wrong address

Postby GJ51 » Mon Apr 29, 2013 3:19 am

Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Personal address is registering wrong address

Postby GJ51 » Mon Apr 29, 2013 3:36 am

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Personal address is registering wrong address

Postby jthg » Mon Apr 29, 2013 2:34 pm

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!
jthg
 
Posts: 8
Joined: Sat Apr 27, 2013 3:14 pm

Re: Personal address is registering wrong address

Postby jthg » Mon Apr 29, 2013 3:01 pm

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!
jthg
 
Posts: 8
Joined: Sat Apr 27, 2013 3:14 pm

Re: Personal address is registering wrong address

Postby jthg » Tue Apr 30, 2013 12:17 am

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?
jthg
 
Posts: 8
Joined: Sat Apr 27, 2013 3:14 pm

Re: Personal address is registering wrong address

Postby GJ51 » Tue Apr 30, 2013 2:03 am

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Personal address is registering wrong address

Postby gurutech » Tue Apr 30, 2013 2:41 am

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....
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Personal address is registering wrong address

Postby GJ51 » Tue Apr 30, 2013 3:08 am

Best answer is a new router ... :mrgreen:
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Personal address is registering wrong address

Postby alphawave7 » Tue Apr 30, 2013 3:13 am

GJ51 wrote:Best answer is a new router ... :mrgreen:


THIS. Give us a budget, and we'll be happy to spend your money! :P
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Re: Personal address is registering wrong address

Postby GJ51 » Tue Apr 30, 2013 3:38 am

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Personal address is registering wrong address

Postby jthg » Tue Apr 30, 2013 3:59 am

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.
jthg
 
Posts: 8
Joined: Sat Apr 27, 2013 3:14 pm

Re: Personal address is registering wrong address

Postby jthg » Tue Apr 30, 2013 4:20 pm

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.
jthg
 
Posts: 8
Joined: Sat Apr 27, 2013 3:14 pm

Re: Personal address is registering wrong address

Postby alphawave7 » Wed May 01, 2013 4:09 am

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!
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Next

Return to General

Who is online

Users browsing this forum: No registered users and 4 guests