Page 1 of 1
Problem with Weblinks for media files, outside of network
Posted: Sun Feb 24, 2008 4:22 am
by SD5150
When I login to my twonky server I can get to the setup page and the media pages fine, but all the links in the Media section always point to my internal IP address (192.168.1.118), so when I click on them, I get an error (which is expected as I am trying to access it from outside my network) How can I change that to make it read the correct IP so that the links work correctly? I did setup a an account at dyndns.org, and I used that in the "Dynamic DNS" settings, and that works for the config pages and the links on the left-most of the pages. But, not for the actual links to get the media. If I change the wrong IP address (internal one) to the correct one (the one I made on dyndns) then the links work and I can access my media, so I know it works. Is there any manual way to edit those links so they point to the correct IP address? What can I do to fix this, let me know, TIA!
Re: Problem with Weblinks for media files, outside of network
Posted: Sun Feb 24, 2008 10:46 pm
by rdeleeuw
i am experiencing the same problem and i have no idea how deal with it.
Re: Problem with Weblinks for media files, outside of network
Posted: Tue Feb 26, 2008 10:28 am
by bsl
Same issue here.
If you are a Firefox user you can use greasemonkey to execute a script that changes the internal ip with the external....this is really just a workaround and only for Firefox until someone finds a global solution...something like:
// ==UserScript by Rommel ==
// @name Change IP Address
// @namespace twonky
// @description Change Twonky IP Address
// @include
http://your-external-ip:9000/*
// @exclude
http://your-external-ip:9000/setup.htm
// ==/UserScript==
var links = document.getElementsByTagName("a");
for (var i = 0; i < links.length; i++) {
link = links
;
link.href = link.href.replace('your-internal-ip', 'your-external-ip');
}
var imgs = document.getElementsByTagName("img");
for (var i = 0; i < imgs.length; i++) {
img = imgs;
img.src = img.src.replace('your-internal-ip', 'your-external-ip');
Please someone at Twonky to explain us how to configure that from the server.
Thanks.
Re: Problem with Weblinks for media files, outside of network
Posted: Wed Feb 27, 2008 11:46 pm
by SD5150
Yeah, thats OK when I use firefox from a PC, but I want to be able to browse on my mobile phone as well. So, in that case I cannot access any links past the Mobile browser selection screen once I get to my links. Is there not any way to change the actual links that show up, I mean its just a webpage right?
\
Thanks for the help, but does anyone else have an answer on how to change the links? I thought this would be a simple problem to fix...
Re: Problem with Weblinks for media files, outside of network
Posted: Sun Mar 30, 2008 10:37 pm
by Goo5e
Finally found a workaround for this after having the same problem for some time, hopefully this will sort it for you too. Here's what you need to do:
Edit the twonkyvision-mediaserver.ini file (the live version is in applications/twonkymedia, but I couldn't edit it directly - some kind of permissions problem. I just edited a copy on my PC then deleted the version on my NAS and copied it over after I'd made the changes on the PC.
Find the section '# Dynamic DNS' and put the external internet address you use to remotely access your NAS after the 'dyndns='. E.g. I use
http://www.no-ip.info for my IP redirection, I assume you've probably got yours already set up in a similar fashion. So the line should read something like:
dyndns=
http://yourserver.no-ip.info:9100
It is important that you use a port other than 9000 as this is reserved for internal use by twonky, doesn't matter too much as long as it's a spare port - 9100 works fine for me.
Further down the ini there is a '# HTTP remote port' section. You need to add the same port as used above, e.g:
httpremoteport = 9100
Finally you need to add the port redirect on your router for 9100 (or whichever port you've chosen). And that should be it sorted.
Now to access your server just enter
http://yourserver.no-ip.info:9100 in your browser and all media links should be prefixed with your external http redirected address rather than the internal 192.168 address.
Working perfectly for me at long last!
Re: Problem with Weblinks for media files, outside of network
Posted: Wed Apr 16, 2008 12:35 pm
by rdeleeuw
It works,
Thank you GooSe
Re: Problem with Weblinks for media files, outside of network
Posted: Wed Jun 11, 2008 10:22 pm
by SD5150
Goo5e wrote:Finally found a workaround for this after having the same problem for some time, hopefully this will sort it for you too. Here's what you need to do:
Edit the twonkyvision-mediaserver.ini file (the live version is in applications/twonkymedia, but I couldn't edit it directly - some kind of permissions problem. I just edited a copy on my PC then deleted the version on my NAS and copied it over after I'd made the changes on the PC.
Find the section '# Dynamic DNS' and put the external internet address you use to remotely access your NAS after the 'dyndns='. E.g. I use
http://www.no-ip.info for my IP redirection, I assume you've probably got yours already set up in a similar fashion. So the line should read something like:
dyndns=
http://yourserver.no-ip.info:9100
It is important that you use a port other than 9000 as this is reserved for internal use by twonky, doesn't matter too much as long as it's a spare port - 9100 works fine for me.
Further down the ini there is a '# HTTP remote port' section. You need to add the same port as used above, e.g:
httpremoteport = 9100
Finally you need to add the port redirect on your router for 9100 (or whichever port you've chosen). And that should be it sorted.
Now to access your server just enter
http://yourserver.no-ip.info:9100 in your browser and all media links should be prefixed with your external http redirected address rather than the internal 192.168 address.
Working perfectly for me at long last!
I have not tried it, but I will say thanks so much anyways! I was looking in the Twonky config files for something just like this, but I didn't want to change anything unless I knew what I was doing. I will try this out tonight and report back. Since the other user said it worked, I assume I will have the same success. Grease monkey scritp was fine for a while, but a nice permanent solution like this would be great, Thanks so much!

Re: Problem with Weblinks for media files, outside of network
Posted: Thu Jul 24, 2008 1:08 pm
by shynee
OK i have done the changes above but now if I log in remotly I get the login popup then go to the correct web access page with music pictures etc but If i click an anything it dumps me in to the configuration page?
twonky is installed on a linkstaion live and all ports are open?
Re: Problem with Weblinks for media files, outside of networ
Posted: Tue Jan 25, 2011 3:36 am
by wassy
Hey guys,
thanks for your posts. this one helped me out as well
Cheers