Jump to content

Accessing files from a mobile device via VPN

Verymanythings

Hello.

 

I recently established a server-ish PC at home, where i store all my family photos etc.

 

I set-up an OpenVPN server using my RT-AC3200 and connected my Iphone to the VPN, to be able to access these pictures from anywhere. 

Now i need some help getting this stuff to work.

 

Things that do currently work:

 

Accessing everything when connected to the home WIFI with my Iphone

Pinging my phone from a home PC when the phone is connected to the VPN.

Pinging APPLE devices from my Iphone when connected through the VPN

 

Things that do not currently work.

 

Accessing shared LAN files when connected to the VPN with my phone.

Seeing any of the computers(except Apple devices) on the Iphone.

 

Thankful for any and all help!

 

Link to comment
Share on other sites

Link to post
Share on other sites

What app are you using to "browse" the server through the VPN?  your credentials have to match for it to allow you. Also did you set up a static IP address for your home, or are you using dynamic DNS like DDNS to update your VPN with the correct server address?

Please quote my post, or put @paddy-stone if you want me to respond to you.

Spoiler
  • PCs:- 
  • Main PC build  https://uk.pcpartpicker.com/list/2K6Q7X
  • ASUS x53e  - i7 2670QM / Sony BD writer x8 / Win 10, Elemetary OS, Ubuntu/ Samsung 830 SSD
  • Lenovo G50 - 8Gb RAM - Samsung 860 Evo 250GB SSD - DVD writer
  •  
  • Displays:-
  • Philips 55 OLED 754 model
  • Panasonic 55" 4k TV
  • LG 29" Ultrawide
  • Philips 24" 1080p monitor as backup
  •  
  • Storage/NAS/Servers:-
  • ESXI/test build  https://uk.pcpartpicker.com/list/4wyR9G
  • Main Server https://uk.pcpartpicker.com/list/3Qftyk
  • Backup server - HP Proliant Gen 8 4 bay NAS running FreeNAS ZFS striped 3x3TiB WD reds
  • HP ProLiant G6 Server SE316M1 Twin Hex Core Intel Xeon E5645 2.40GHz 48GB RAM
  •  
  • Gaming/Tablets etc:-
  • Xbox One S 500GB + 2TB HDD
  • PS4
  • Nvidia Shield TV
  • Xiaomi/Pocafone F2 pro 8GB/256GB
  • Xiaomi Redmi Note 4

 

  • Unused Hardware currently :-
  • 4670K MSI mobo 16GB ram
  • i7 6700K  b250 mobo
  • Zotac GTX 1060 6GB Amp! edition
  • Zotac GTX 1050 mini

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, paddy-stone said:

What app are you using to "browse" the server through the VPN?  your credentials have to match for it to allow you. Also did you set up a static IP address for your home, or are you using dynamic DNS like DDNS to update your VPN with the correct server address?

Remote file Explorer, FilebrowserGO, Fileexplorer. 

They all advertise VPN compatibility. 

What credentials do you mean? The PC username and pass?

 

And yes i'm using a DDNS built into my router.

 

Connection is not the issue, i connect fine, and can ping LAN devices from my phone using a ping app.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Verymanythings said:

Remote file Explorer, FilebrowserGO, Fileexplorer. 

They all advertise VPN compatibility. 

What credentials do you mean? The PC username and pass?

 

And yes i'm using a DDNS built into my router.

 

Connection is not the issue, i connect fine, and can ping LAN devices from my phone using a ping app.

 

 

https://thetechjournal.com/electronics/iphone/samba-file-sharing-comes-to-ios-try-it-now.xhtml

 

I think it's most likely that you are trying to access samba shares right?  as you said PC, and that you could access apple devices fine, but not seeing any of the other computers.

Credentials basically in this case means being certified to access files from the PC you are wanting to access, so you need to "share" from the PC, and to a "user" that has an account on the PC... the credentials are for the "user".

So say I had a PC with an admin account that I want to share files from... the guy that wants to access them needs to have a username and password (credentials) to access them. So you create a username and password for him, go to the shares, and enable those files to be shared with that username...and he connects to the PC through a VPN for example to your home network, and can access those shares.

Please quote my post, or put @paddy-stone if you want me to respond to you.

Spoiler
  • PCs:- 
  • Main PC build  https://uk.pcpartpicker.com/list/2K6Q7X
  • ASUS x53e  - i7 2670QM / Sony BD writer x8 / Win 10, Elemetary OS, Ubuntu/ Samsung 830 SSD
  • Lenovo G50 - 8Gb RAM - Samsung 860 Evo 250GB SSD - DVD writer
  •  
  • Displays:-
  • Philips 55 OLED 754 model
  • Panasonic 55" 4k TV
  • LG 29" Ultrawide
  • Philips 24" 1080p monitor as backup
  •  
  • Storage/NAS/Servers:-
  • ESXI/test build  https://uk.pcpartpicker.com/list/4wyR9G
  • Main Server https://uk.pcpartpicker.com/list/3Qftyk
  • Backup server - HP Proliant Gen 8 4 bay NAS running FreeNAS ZFS striped 3x3TiB WD reds
  • HP ProLiant G6 Server SE316M1 Twin Hex Core Intel Xeon E5645 2.40GHz 48GB RAM
  •  
  • Gaming/Tablets etc:-
  • Xbox One S 500GB + 2TB HDD
  • PS4
  • Nvidia Shield TV
  • Xiaomi/Pocafone F2 pro 8GB/256GB
  • Xiaomi Redmi Note 4

 

  • Unused Hardware currently :-
  • 4670K MSI mobo 16GB ram
  • i7 6700K  b250 mobo
  • Zotac GTX 1060 6GB Amp! edition
  • Zotac GTX 1050 mini

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 2018-04-05 at 6:28 PM, paddy-stone said:

https://thetechjournal.com/electronics/iphone/samba-file-sharing-comes-to-ios-try-it-now.xhtml

 

I think it's most likely that you are trying to access samba shares right?  as you said PC, and that you could access apple devices fine, but not seeing any of the other computers.

Credentials basically in this case means being certified to access files from the PC you are wanting to access, so you need to "share" from the PC, and to a "user" that has an account on the PC... the credentials are for the "user".

So say I had a PC with an admin account that I want to share files from... the guy that wants to access them needs to have a username and password (credentials) to access them. So you create a username and password for him, go to the shares, and enable those files to be shared with that username...and he connects to the PC through a VPN for example to your home network, and can access those shares.

So i did! 

No success unfortunately, this is really getting on my nerves and i need it up and running as soon as possible :/

been tinkering back and forth.

basically what i have running is a windows 7 pro PC with ~10tb of HDD's in raid 0 (ye i know shoot me). 

I've shared the raid on the network, and can view it's contents fine on my phone over wifi (using username and pass for the pc).

however, when attempting the same over VPN, it's a no-go and the connection to the pc usually times out.

 

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, Verymanythings said:

So i did! 

No success unfortunately, this is really getting on my nerves and i need it up and running as soon as possible :/

been tinkering back and forth.

basically what i have running is a windows 7 pro PC with ~10tb of HDD's in raid 0 (ye i know shoot me). 

I've shared the raid on the network, and can view it's contents fine on my phone over wifi (using username and pass for the pc).

however, when attempting the same over VPN, it's a no-go and the connection to the pc usually times out.

 

So, the device trying to connect to the shares on the home network, has a VPN connection to your home network right?  So like openvpn and copied the files to the device(s) you want to connect to the home network?

If that's all correct, then the only thing I can think of is that the credentials don't match, is the device able to connect to the shares/PC when at home OK?

Please quote my post, or put @paddy-stone if you want me to respond to you.

Spoiler
  • PCs:- 
  • Main PC build  https://uk.pcpartpicker.com/list/2K6Q7X
  • ASUS x53e  - i7 2670QM / Sony BD writer x8 / Win 10, Elemetary OS, Ubuntu/ Samsung 830 SSD
  • Lenovo G50 - 8Gb RAM - Samsung 860 Evo 250GB SSD - DVD writer
  •  
  • Displays:-
  • Philips 55 OLED 754 model
  • Panasonic 55" 4k TV
  • LG 29" Ultrawide
  • Philips 24" 1080p monitor as backup
  •  
  • Storage/NAS/Servers:-
  • ESXI/test build  https://uk.pcpartpicker.com/list/4wyR9G
  • Main Server https://uk.pcpartpicker.com/list/3Qftyk
  • Backup server - HP Proliant Gen 8 4 bay NAS running FreeNAS ZFS striped 3x3TiB WD reds
  • HP ProLiant G6 Server SE316M1 Twin Hex Core Intel Xeon E5645 2.40GHz 48GB RAM
  •  
  • Gaming/Tablets etc:-
  • Xbox One S 500GB + 2TB HDD
  • PS4
  • Nvidia Shield TV
  • Xiaomi/Pocafone F2 pro 8GB/256GB
  • Xiaomi Redmi Note 4

 

  • Unused Hardware currently :-
  • 4670K MSI mobo 16GB ram
  • i7 6700K  b250 mobo
  • Zotac GTX 1060 6GB Amp! edition
  • Zotac GTX 1050 mini

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, paddy-stone said:

So, the device trying to connect to the shares on the home network, has a VPN connection to your home network right?  So like openvpn and copied the files to the device(s) you want to connect to the home network?

If that's all correct, then the only thing I can think of is that the credentials don't match, is the device able to connect to the shares/PC when at home OK?

Yes. 

I successfully connect my phone to the VPN, and i can access the router control page when inputting 192.168.2.1 in the browser off the VPN phone.

 

I can successfully ping most devices(probably all, but didn't try) from my phone over a VPN connection to my home network.

 

I cannot access any shared files on the network, nor connect to the "server" to view the files. And i am 100% using the right credentials.

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, Verymanythings said:

Yes. 

I successfully connect my phone to the VPN, and i can access the router control page when inputting 192.168.2.1 in the browser off the VPN phone.

 

I can successfully ping most devices(probably all, but didn't try) from my phone over a VPN connection to my home network.

 

I cannot access any shared files on the network, nor connect to the "server" to view the files. And i am 100% using the right credentials.

Hmm, that is weird.. I hope you don't mind my mentioning, but if you're entering names, sometimes they are case sensitive... believe me I've been there before and spent a few hours one time trying to understand why the connection wasn't completing... I could've kicked myself when I finally noticed that I had put an uppercase at the start of the name of the shares folder.

Anyway, sorry I couldn't be of help to you, it's everything I could think of without it being massively complex/complicated.

I would hazard a guess that it's likely associated with the server blocking non-local connections... but it's just a guess. Thing I would try though is to set up another network share in a freenas vm or something, even a windows share... and then trying to connect to that.

 

Oh, and just FWIW, if you're at home and trying to connect, it's best to turn off your phone's wifi, and use cellular to simulate accessing from outside the home.. that's how I do it and it works fine. If you're already doing that then it's fine, just thought I'd mention it. Hope you find the solution.

Please quote my post, or put @paddy-stone if you want me to respond to you.

Spoiler
  • PCs:- 
  • Main PC build  https://uk.pcpartpicker.com/list/2K6Q7X
  • ASUS x53e  - i7 2670QM / Sony BD writer x8 / Win 10, Elemetary OS, Ubuntu/ Samsung 830 SSD
  • Lenovo G50 - 8Gb RAM - Samsung 860 Evo 250GB SSD - DVD writer
  •  
  • Displays:-
  • Philips 55 OLED 754 model
  • Panasonic 55" 4k TV
  • LG 29" Ultrawide
  • Philips 24" 1080p monitor as backup
  •  
  • Storage/NAS/Servers:-
  • ESXI/test build  https://uk.pcpartpicker.com/list/4wyR9G
  • Main Server https://uk.pcpartpicker.com/list/3Qftyk
  • Backup server - HP Proliant Gen 8 4 bay NAS running FreeNAS ZFS striped 3x3TiB WD reds
  • HP ProLiant G6 Server SE316M1 Twin Hex Core Intel Xeon E5645 2.40GHz 48GB RAM
  •  
  • Gaming/Tablets etc:-
  • Xbox One S 500GB + 2TB HDD
  • PS4
  • Nvidia Shield TV
  • Xiaomi/Pocafone F2 pro 8GB/256GB
  • Xiaomi Redmi Note 4

 

  • Unused Hardware currently :-
  • 4670K MSI mobo 16GB ram
  • i7 6700K  b250 mobo
  • Zotac GTX 1060 6GB Amp! edition
  • Zotac GTX 1050 mini

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

Still have not managed to get this working.

 

If anyone has some brilliant insights, please do share!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×