Problem with Weblinks for media files, outside of network

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
SD5150
Posts:6
Joined:Fri Feb 22, 2008 2:46 am
Problem with Weblinks for media files, outside of network

Post by SD5150 » Sun Feb 24, 2008 4:22 am

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!
Buffalo TeraStation Live
Twonky Media 4.4.3.1

rdeleeuw
Posts:5
Joined:Sun Feb 24, 2008 10:16 pm
AV Hardware:conceptronic mediaplayer

Re: Problem with Weblinks for media files, outside of network

Post by rdeleeuw » Sun Feb 24, 2008 10:46 pm

i am experiencing the same problem and i have no idea how deal with it.

bsl

Re: Problem with Weblinks for media files, outside of network

Post by bsl » Tue Feb 26, 2008 10:28 am

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.

SD5150
Posts:6
Joined:Fri Feb 22, 2008 2:46 am

Re: Problem with Weblinks for media files, outside of network

Post by SD5150 » Wed Feb 27, 2008 11:46 pm

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...
Buffalo TeraStation Live
Twonky Media 4.4.3.1

Goo5e
Posts:1
Joined:Sun Mar 30, 2008 10:20 pm
AV Hardware:NAS1000, PS3, LG 42PX5D

Re: Problem with Weblinks for media files, outside of network

Post by Goo5e » Sun Mar 30, 2008 10:37 pm

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. :D

Working perfectly for me at long last!

rdeleeuw
Posts:5
Joined:Sun Feb 24, 2008 10:16 pm
AV Hardware:conceptronic mediaplayer

Re: Problem with Weblinks for media files, outside of network

Post by rdeleeuw » Wed Apr 16, 2008 12:35 pm

It works,

Thank you GooSe

SD5150
Posts:6
Joined:Fri Feb 22, 2008 2:46 am

Re: Problem with Weblinks for media files, outside of network

Post by SD5150 » Wed Jun 11, 2008 10:22 pm

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. :D

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! :D :mrgreen:
Buffalo TeraStation Live
Twonky Media 4.4.3.1

shynee
Posts:1
Joined:Mon Jul 21, 2008 11:33 pm
AV Hardware:PS3, AMOLI 37" THOR hdmi SWITCH SKY HD

Re: Problem with Weblinks for media files, outside of network

Post by shynee » Thu Jul 24, 2008 1:08 pm

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?

wassy
Posts:5
Joined:Fri Sep 25, 2009 11:25 am
AV Hardware:VAIO FZ-21S
Bravia 40W550 (coming soon)

Re: Problem with Weblinks for media files, outside of networ

Post by wassy » Tue Jan 25, 2011 3:36 am

Hey guys,

thanks for your posts. this one helped me out as well

Cheers

Locked