Page 1 of 1

Port Forwarding / Remote Access Works, subsonic.org Does Not

PostPosted: Thu May 06, 2010 2:28 am
by BrianB
I can get the port forwarding to work and I can access subsonic remotely via myipaddress:4040, but I can not get the registered subsonic.org address to work. I have donated and the address is registered, but I get the "username.subsonic.org is registered, but could not connect to it. (ConnectTimeoutException)" error when I test it.

If I have port forwarding functioning and I have a licensed version of subsonic, what would keep the personalized subsonic.org address from working?

PostPosted: Thu May 06, 2010 6:49 am
by sindre_mehus
You could try to enter http://username.subsonic.org in a browser outside you local network and see what IP address the browser is forwarded to.

PostPosted: Thu May 06, 2010 3:18 pm
by BrianB
It looks like it is pointing to correct and current ip. It doesn't list the port (4040). Should it?

PostPosted: Thu May 06, 2010 6:31 pm
by sindre_mehus
Yes it should use port 4040 for it to work.

If you're using version 3.9, please make sure that the "public port" in Settings > Network is set to 4040 (even it the option for automatic port forwarding is disabled).

Alternatively, upgrade to 4.0.beta2.

Hope this helps

PostPosted: Thu May 06, 2010 10:12 pm
by BrianB
That did it, thanks. It was set to 80 (which is the default, maybe?).

PostPosted: Fri May 07, 2010 2:14 pm
by wdpaynter
I have my setup using the "myaddress.subsonic.org" method and have my router setup to forward port 80 to my machines ip address 192.168.1.103 - all works well locally and remotely

Recently my local machine's (server) ip address changed to 192.169.1.102 and I was unable to access remotely until I changed the ip in my router config to .102

I thought the subsonic.org domain was intended to handle this so that it would work automatically. Did I do something wrong?

Please help, I will provide any other details that are required.
Thanks
BP

PostPosted: Fri May 07, 2010 3:06 pm
by wraithdu
@wdpaynter
The subsonic address, as well as any other dynamic IP service (No-IP, DynDns), only gets you as far as your external IP address. Subsonic's address goes one step further and tacks on an external port number to that forwarding. But once there, it's up to you and your router to correctly route your internal network traffic.

@sindre
Using your suggestion about the public port setting got the subsonic address working for me. If you remember, I have different internal and external ports on my network. However the box about using UPnP has to be checked for it to work, even though I have UPnP disabled on my network and the subsonic server never actually finds the router.

I seem to remember you saying somewhere that this procedure has changed in Subsonic 4. Will I still be able to set my external port for my subsonic address somehow?

PostPosted: Fri May 07, 2010 3:27 pm
by wdpaynter
I appreciate the response, but am now even more confused (I apologize for my ignorance). Everything is set up fine and works until I shut down or restart my PC and my router gives me a new IP address. Is there something I need to do in my router settings to allow my subsonic.org domain to update the change in IP address?

Thanks
BP

PostPosted: Fri May 07, 2010 4:05 pm
by sindre_mehus
wdpaynter wrote:I appreciate the response, but am now even more confused (I apologize for my ignorance). Everything is set up fine and works until I shut down or restart my PC and my router gives me a new IP address. Is there something I need to do in my router settings to allow my subsonic.org domain to update the change in IP address?


There are two IP addresses in question here:

1. Your public IP as assigned by your internet service provider. The subsonic.org forwarding service takes care of this.

2. The internal IP address of your Subsonic server (192.168.1.xxx). Normally your router assigns this (using DHCP) when you boot the computer.

To solve #2 you basically have two options: The easiest is to use the "automatic port forwarding" feature in Settings > Network. Subsonic will then automatically tell the router which IP address it has. Alternatively you can change the settings on your computer to use a static IP. Instructions for the latter is found here.

Regards,
Sindre

PostPosted: Sat May 08, 2010 1:52 am
by wdpaynter
Sindre

I've always had the automatic checked in network settings. Is there something that it or I may have done wrong? Is there a way I can test what will happen if my PC that is used as a server's IP address changes? (force a change or something just to test) - I have my router (Linksys) forwarding port 80 for IP 192.168.1.102 (was .103 previously)

I would rather not set up a static IP, as I have many PCs/devices on my home network and do not want any conflicts.

Thanks
BP

PostPosted: Sat May 08, 2010 5:24 am
by wraithdu
For automatic forwarding to work, you need to

1) remove the manual port forwarding
2) make sure UPnP is ENABLED in your router's settings

You can avoid IP conflicts by setting your router's DHCP range outside of your static IP range. For example, set your router's DHCP range to xxx.xxx.xxx.150 to xxx.xxx.xxx.255, then you can assign any static IPs from xxx.xxx.xxx.1-149.

PostPosted: Sat May 08, 2010 2:49 pm
by wdpaynter
OK, i disabled the manual forwarding and UPnP is (and has always been) enabled.

I still connect locally by this method, but when I tested using iSub on my iphone using 3G (disabled wireless to get off LAN), It will not connect. I use my address within the app "myaddress.subsonic.org:80

I'm confused and appreciate everyone's help.
Thanks
BP

PostPosted: Sun May 09, 2010 6:45 pm
by wraithdu
When you set up you subdomain name, did you correctly set your external port number? Does the 'Test' link succeed next to your subdomain?

If your router is a Linksys, you might have to reboot it and your computer. I've noticed UPnP randomly stops working on some Linksys routers for no reason. That's why I just disabled it.

PostPosted: Sun May 09, 2010 9:42 pm
by wdpaynter
I am fairly certain that I have the port handled correctly, as everything works both locally and remotely. (It is only when my server pc's ip changes that I have problems and have to manually change the ip in my liksys settings page)

I have rebooted my pc mutiple times. When you say to reboot the router, do you mean just unplug, wait, and plug back in? I'd rather not use the reset button, as I have a lot of settings that work well with other things on my network.

Thanks again for your help.
BP

PostPosted: Mon May 10, 2010 6:34 pm
by wraithdu
Yeah, just unplug the router and plug it back in. NOT a reset. You might have to reboot your computer after the router comes back up just so all your networked programs can restart and do their UPnP thing. If it still doesn't work, then UPnP is not working correctly on your computer / router. It can be a pain to get working sometimes.

Try the UPnPTest program from this site: http://www.mgillespie.plus.com/
Or UPNPTest2 from this site: http://www.zultrax.com/forward-port/upnp.htm