Page 1 of 1

Resolving DDNS on LAN with Serviio Go

PostPosted: Fri Sep 06, 2013 11:56 am
by djstodul
Hello,

A nice feature would be to be able to resolve DDNS properly while on the LAN using serviio go.

When I am away from home, I use my DDNS to connect to my network, but when I am at home, I need to change it to my internal network server. Is there anyway that you could program it so the Serviio Go would use the DDNS to connect to the server while I am within the network?

Thanks!

Re: Resolving DDNS on LAN with Serviio Go

PostPosted: Fri Sep 06, 2013 1:38 pm
by will
djstodul wrote:Hello,

A nice feature would be to be able to resolve DDNS properly while on the LAN using serviio go.

When I am away from home, I use my DDNS to connect to my network, but when I am at home, I need to change it to my internal network server. Is there anyway that you could program it so the Serviio Go would use the DDNS to connect to the server while I am within the network?

Thanks!


Your router should do that automatically for you. Ie. it will get the request for name.dyndns.org, see its for it's public IP, look up the NAT rule, and then send it to your server's private IP.

If it doesn't do it, look for settings named 'loopback' or 'internal loopback' or similar. Btw what router do you have?

Re: Resolving DDNS on LAN with Serviio Go

PostPosted: Sat Sep 07, 2013 6:49 pm
by djstodul
Hello,

I have an Asus RT-AC66U with RMerlin's latest modified firmware. I use an openvpn client on it and I selectively route my desktop running Serviio Pro 1.3.1 around the VPN. I forward all the ports to my desktop and Serviio Go works perfectly outside the network.


Do you need me to run any route or Nat listings? if its just a matter of running a command on my router in a script, that would be excellent.

Thanks!

Re: Resolving DDNS on LAN with Serviio Go

PostPosted: Sat Sep 07, 2013 9:12 pm
by will
So what exactly happens when you connect to your dynamic DNS address /public IP using ServiiGo from within your network?

Re: Resolving DDNS on LAN with Serviio Go

PostPosted: Sat Sep 07, 2013 10:35 pm
by djstodul
Hello,

I get a "failed to connect" error. Works fine I'd I use the internal IP address

Re: Resolving DDNS on LAN with Serviio Go

PostPosted: Sat Sep 07, 2013 10:40 pm
by will
What happens when you try mediabrowser from a pc? I'll try to find your routers manual, as it should just work....

Edit: A quick google says that the default Asus firmware doesn't support NAT loopback, or at least didn't a while ago.

The firmware you mentioned says it addresses some issues related to NAT/VPN/loopback. Can you have a poke around the router's web config, especially any pages related to NAT, routing, interfaces etc...

Re: Resolving DDNS on LAN with Serviio Go

PostPosted: Sat Sep 07, 2013 11:44 pm
by djstodul
Hello,

OK, I confirmed that the problem is the openvpn client that RMerlin added to the firmware interferes with NAT loopback. When I disable the openvpn client, nat loopback works properly and I can connect using name.dyndns.org from serviio go from within my network.

I could ask RMerlin if he could check to see if he could get nat loopback working while the openvpn client is running.

Else, a dropdown under "Address" listing the last functioning addresses would ease the nuisance of having to change the address every time.

Thanks for being responsive!

Re: Resolving DDNS on LAN with Serviio Go

PostPosted: Sun Sep 08, 2013 7:31 am
by will
I would ask the dev as I saw change log entries related to it, and it really should be possible.

The reason I've held off on this is I would also need to save the WiFi SSID so that I know if I need to connect to the private IP or the DDNS. As i'm planning on moving the data into a database so that I can track when the user last connected to a server (based on its internal library/database id that every installation of Serviio has), so that I can clear out the caches inteligently, i've held off of doing any of this until I have time to do it properly. I'll have a think about this and might bring it forward, else a dropdown of recent servers is probably the best option for now.

Re: Resolving DDNS on LAN with Serviio Go

PostPosted: Sun Oct 06, 2013 12:41 am
by djstodul
Thank you for the server list. It works like a charm.