What's new

Dlna over openvpn

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

kiesa1231

Regular Contributor
Hello maybe possible setup to work dlna over openvpn?Now openvpn server started on asus.But dlna stream servers not visible in remote connected device.And lan file sharing not working please help thanks.
 
DLNA isn't really designed to work cross-networks, it's designed to run only within the current subnet.
 
Hello maybe possible setup to work dlna over openvpn?Now openvpn server started on asus.But dlna stream servers not visible in remote connected device.And lan file sharing not working please help thanks.
DLNA isn't really designed to work cross-networks, it's designed to run only within the current subnet.
I don't know if this will work, but you could try having the VPN subnet as a segment of the primary subnet?
 
I don't know if this will work, but you could try having the VPN subnet as a segment of the primary subnet?

Broadcasts probably won't carry over the tunnel.
 
And lan file sharing not working please help thanks.
Win10 file sharing (samba) worked fine for me after adding a rule to windows firewall... advanced firewall settings, inbound, File & Printer Sharing SMB-In, scope, add your tunnel's subnet to 'these remote IPs' (default ovpn tunnel uses 10.8.0.0/24).

You may want to run 2 server instances on your router; a tcp443 tunnel for reliability/compatibility, and a udp1194 tunnel for speed. To have samba access through either tunnel, add both subnets to that rule (default 2nd tunnel uses 10.16.0.0/24).

DLNA isn't really designed to work cross-networks, it's designed to run only within the current subnet.

Awe bummer... wasn't working for me either. I added my ovpn subnet to a suspicious win10 firewall rule (Windows Media Player Network Sharing Service (UPnP-In)', UDP2869), and bammo I got the server to show up in my phone dlna app (bubble upnp) while connected through the tunnel... so excited! ...then I got 'access denied' when I tried to browse the server. Everything works perfect when connected on the same subnet of course. I came here in search of answers to something I was certainly doing wrong, but I guess I'm barking up the wrong tree.

Tap wouldn't work either? (Edit... nm stupid question)

In my case smb through tun is too slow for streaming video. Is that typical? I've got an n66u (meh); tunnel speed test averages 9mbps down/ 3mbps up throughout the day (ISP's: router-25mbps fiber, phone-25mbps 4g... both solid performing up and down).

The android samba apps I've seen are too clunky for streaming music. I'm sure I'd get closer to 25mbps with newer hardware, but that is still plenty of bandwidth to stream. Is there a good alternative to dlna that works through a tunnel?

Kev
 
Last edited:
Win10 file sharing (samba) worked fine for me after adding a rule to windows firewall... advanced firewall settings, inbound, File & Printer Sharing SMB-In, scope, add your tunnel's subnet to 'these remote IPs' (default ovpn tunnel uses 10.8.0.0/24).

You may want to run 2 server instances on your router; a tcp443 tunnel for reliability/compatibility, and a udp1194 tunnel for speed. To have samba access through either tunnel, add both subnets to that rule (default 2nd tunnel uses 10.16.0.0/24).



Awe bummer... wasn't working for me either. I added my ovpn subnet to a suspicious win10 firewall rule (Windows Media Player Network Sharing Service (UPnP-In)', UDP2869), and bammo I got the server to show up in my phone dlna app (bubble upnp) while connected through the tunnel... so excited! ...then I got 'access denied' when I tried to browse the server. Everything works perfect when connected on the same subnet of course. I came here in search of answers to something I was certainly doing wrong, but I guess I'm barking up the wrong tree.

Tap wouldn't work either?

In my case smb through tun is too slow for streaming video. Is that typical? I've got an n66u (meh); tunnel speed test averages 9mbps down/ 3mbps up throughout the day (ISP's: router-25mbps fiber, phone-25mbps 4g... both solid performing up and down).

The android samba apps I've seen are too clunky for streaming music. I'm sure I'd get closer to 25mbps with newer hardware, but that is still plenty of bandwidth to stream. Is there a good alternative to dlna that works through a tunnel?

Kev
Is that 25mbps upstream or downstream
 
Router is 25 up and down... loosely capped. Phone's 4g varies with location but download usually exceeds router upload.

Router:
speedtestRouter.png

phone:
speedtest4g.png

Udp vpn:
Screenshot_20170704-014927.png

Tcp vpn:
Screenshot_20170704-015029.png

...samba 550 kbps, lol.
 
Last edited:
I created a Frankenstein's monster to connect two locations via a TAP tunnel. That allowed me to connect a Tivo in one place to a Tivo in the second place and move recordings. It needed to be TCP, not UDP, and I had to be careful that the IP addresses didn't step on each other. I abandoned it because it was easier to tunnel from a PC.

You can't TAP from Android without root.
 
I understand TAP+ANDROID w/o root isn't possible. (I edited my earlier post to reflect that)

Looks like the slow samba isn't openvpn's fault... connected directly on the LAN (phone on wifi, pc wired) samba still didn't get better than ~800kbps. Googling more, it appears that this is a known issue with android. Most ppl are maxing ~800kbps with samba on android, period. Although, there was one person who claimed decent performance until a recent google update... hmm.

Sigh... so neither dlna nor samba will work for streaming. I suppose I'll have to study up on doing this via http or ftp... but not sure how that would integrate with streaming music apps either.

Kev
 
Try ES Explorer on Android. I've played media files over SMB using that application (and MX Player as the media player) on my tablet in the past.
 
Broadcasts probably won't carry over the tunnel.
Broadcasts will carry over the TAP tunnel. But I suppose that all stuff will be very slow.
 
I enjoyed es explorer+mx video+vlc player for a while on my previous phone, until I read some posts on xda from a few well respected devs stating that es was phoning home to China for unknown reasons. That phone was also rooted, and I didn't feel confident in configuring the firewall to stop the app's suspicious connections. I settled on fx explorer until the phone needed replacement.

I have seen more recent info that suggests the current paid version of es doesn't phone home. I will have to give it another shot.

I was sorta hoping to see how solid explorer would work with mx+vlc, but the free trial expired before I had time to experiment. I also have some hope of getting vlc player to work on its own... but for whatever reason vlc samba does not work through vpn (samba does work fine through vpn with android-smb and solid explorer). Vlc would be the ideal solution if it worked with vpn... maybe the app has bugs through vpn since it also handles dlna. Anyhow... surprising this functionality isn't built in to android to be honest.

Kevin
 
Broadcasts will carry over the TAP tunnel. But I suppose that all stuff will be very slow.

We were discussing TUN tho. TAP works at level 2, below the broadcasts that are sent at level 3. So yes, TAP would work, but it's a pain to setup properly, and isn't supported by non-root Android devices.

I have seen more recent info that suggests the current paid version of es doesn't phone home. I will have to give it another shot.

I recently switched to their paid version, because the free version was getting bloatted with useless features showing up in my notification area, on top of the ads that were becoming more intrusive.
 
It is good that es added a pay version, and I understand most of the free bloat version is that way to pay bills.

I decided to try Solid Explorer first, simply because they never went down the bloatware road. For $2 I am now able to stream my music albums and assorted videos with minimal fuss. Although, it 'stays inside the folder' when streaming music... would be nice if it also let me pick an assortment of folders queue up. Does es let you do that... without making playlists? If so I might buy both apps.

Kev

Edit: Does there exist a short how-to on the forums, for win10-lan-vpn-mobile streaming? If not I may take a crack at it. It took appreciable time googling and experimenting with dlna, samba apps, vpn config, etc. before I achieved any success. I think the average newb like myself could get it done in less than an hour with a lightweight to the point guide. I think this particular functionality would be very popular if it were made more accessible the less technical folks.
 
Last edited:
It is good that es added a pay version, and I understand most of the free bloat version is that way to pay bills.

I decided to try Solid Explorer first, simply because they never went down the bloatware road. For $2 I am now able to stream my music albums and assorted videos with minimal fuss. Although, it 'stays inside the folder' when streaming music... would be nice if it also let me pick an assortment of folders queue up. Does es let you do that... without making playlists? If so I might buy both apps.

Kev

Edit: Does there exist a short how-to on the forums, for win10-lan-vpn-mobile streaming? If not I may take a crack at it. It took appreciable time googling and experimenting with dlna, samba apps, vpn config, etc. before I achieved any success. I think the average newb like myself could get it done in less than an hour with a lightweight to the point guide. I think this particular functionality would be very popular if it were made more accessible the less technical folks.
I started one, but work soaked up more of my free time than I'd like :mad: I'll be back on it soon: https://github.com/jackyaz/ovpnsrvconf-asuswrt-merlin
 
Cool! After brainstorming I wondered just how long it would take to make a guide that eliminates most of the questions that could come up... could be an endless guide depending who it is written for lol. I didn't feel up to the task of picking an audience and making assumptions on knowledge. Good karma to you for pursuing it.

Kev
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top