[APP][4.0.3+][NO Root] LAN drive - Samba Filesharing Server SMB1 and SMB2

Search This thread

schotenandi

Member
Nov 23, 2017
7
1
I think you disabled notification from LANdrive that's why nothing works.
No, this is not the case. This option is activated and the default for new installed apps on my system. Furthermore LANDrive shows all notifications if I start the server in the app manually. This will not work when your mentioned option is deactivated ;)

The code is always done to keep the display on when start as service is disabled, no option need (or maybe it doesn't work on your phone?)
Sorry, I didn't tried that out. Very good!

(You seems to have uncommon errors, I'm trying to think your ROM is unstable)
Hmm... but I don't have any problems with other apps. And I tested Servers Ultimate and many other server-like apps. No problem with starting on boot time at all. An all other non-root services like Evernote, Mail App, WhatsApp etc. work without any problem. So it must be a problem with your app?

I meet the customer with the non-rooted device tomorrow. He has a stock rom of the Galaxy S8. I will see if it works and come back.
Thx for now!
 

poppyto

Senior Member
Jul 17, 2009
58
40
No, this is not the case. This option is activated and the default for new installed apps on my system. Furthermore LANDrive shows all notifications if I start the server in the app manually. This will not work when your mentioned option is deactivated ;)

My mistake, I forget to tell you to activate "Starting the server at startup of the app" too.
It can take 1 to 2 minutes before the service start (waiting for the Android signal...)

So to auto connect at reboot :

* Start the app after OS boot completed : ENABLED
* Boot option : Always show UI : DISABLED
* Starting the server at startup of the app : ENABLED
* Run as Service : ENABLED

Stephane
 

ccchan234

Member
Jul 8, 2017
36
7
update 20190208-164541
ok, after update to 5.7 I found the tutorial finally.
thanks

------------
old:
Hi~ I am new and is a paid user.
Heard that the info for NON-ROOT usage is in the app,
BUT I didn't found it.
Could someone pls forward/send/tell me where is the info to setup using NON-ROOT method?
thanks.

ps: I dont found in the app's help, and even I searched within this thread using "root",
I dont found specific info.

Thanks
 
Last edited:
  • Like
Reactions: poppyto

schotenandi

Member
Nov 23, 2017
7
1
password encryption

Hi stephane,
one last question:
As I know password encryption is not supported by SMB2. That means using LANDrive over mobile connection with external IP is unsecure, isn't it?
 

schotenandi

Member
Nov 23, 2017
7
1
Password smb2 are encrypted, you can found some info’s here :
https://blogs.msdn.microsoft.com/op...he-anatomy-of-signing-and-cryptographic-keys/
Smb1 is not enough secure but smb2 is ok (and smb3 better)
Stéphane
Thank you for the interessting link!
Today I tried to get LANDrive working over 3G, but had no success. I changed the providers APN to a non NATed one wich provides a public IP address. Now I am able to use services like WebDAV running on my phone from elsewhere.
But LANDrive shows only the information that I have to connect to Wifi or ethernet. Therefore using this app over 3G isn't possible, is it?
Bye Andi
 

poppyto

Senior Member
Jul 17, 2009
58
40
Thank you for the interessting link!
Today I tried to get LANDrive working over 3G, but had no success. I changed the providers APN to a non NATed one wich provides a public IP address. Now I am able to use services like WebDAV running on my phone from elsewhere.
But LANDrive shows only the information that I have to connect to Wifi or ethernet. Therefore using this app over 3G isn't possible, is it?
Bye Andi

You can use Landrive via 3G (ip is bint on 0.0.0.0 => connections can going from everywhere), but it can't resolve Netbios name on public network, so you have to connect to the public IP address directly (because netbios resolution uses broadcasts, not allowed on public network).
Be sure the connection is bint on TCP 445 (Root), if not, be sure to use a client which allow other ports (LAN drive can do it too - ios/android/win10).
In the same time, maybe your provider doesn't allow privilegied ports (<1024), so try to bind on a port like 1445, and check a client to 1445 too .
 

ccchan234

Member
Jul 8, 2017
36
7
Hi~
I finally found the tutorial to use "non root" method in the app.
But it suggested a windows program but didn't mention that ..

is the "FREE" version already ok for "non root" use of LAN samba? as the free version support 3 rules.

or MUST buy the USD15 version?

there is a different, hope some one can answer me

thanks
 

poppyto

Senior Member
Jul 17, 2009
58
40
Hi~
I finally found the tutorial to use "non root" method in the app.
But it suggested a windows program but didn't mention that ..

is the "FREE" version already ok for "non root" use of LAN samba? as the free version support 3 rules.

or MUST buy the USD15 version?

there is a different, hope some one can answer me

thanks

All is written in the tutorial :

"it has a 30 days TRIAL, feel free to buy it after the trial period, it's a great tool - and again i'm not affiliated). Download it and install it (a reboot is needed to activate the driver).
So try to use it during 30 days and feel free to buy it again.
Don't forget you don't need this tool, you can use LANdrive for Win10 (download in the windows store) to connect (it's also in the documentation)
 

ccchan234

Member
Jul 8, 2017
36
7
All is written in the tutorial :

"it has a 30 days TRIAL, feel free to buy it after the trial period, it's a great tool - and again i'm not affiliated). Download it and install it (a reboot is needed to activate the driver).
So try to use it during 30 days and feel free to buy it again.
Don't forget you don't need this tool, you can use LANdrive for Win10 (download in the windows store) to connect (it's also in the documentation)

hi~

english is my 2nd mother language,
from what i understand,

feel free to buy mean:

i can refuse to buy but still can use it for lan samba.

if i really want to buy, i am allowed to buy it.

hope i interpret it correctly.

thx

ps: after 30days the trial become a limited free version,

i simply asking is this limited version which only permit 3 rules is enough for lan samba. thx


btw, win10 update keep delete files, i still stick to win7. thx
 

schotenandi

Member
Nov 23, 2017
7
1
You can use Landrive via 3G (ip is bint on 0.0.0.0 => connections can going from everywhere), but it can't resolve Netbios name on public network, so you have to connect to the public IP address directly (because netbios resolution uses broadcasts, not allowed on public network).
Be sure the connection is bint on TCP 445 (Root), if not, be sure to use a client which allow other ports (LAN drive can do it too - ios/android/win10).
In the same time, maybe your provider doesn't allow privilegied ports (<1024), so try to bind on a port like 1445, and check a client to 1445 too .
Hi Stephane!
Sorry, but my problem is that LANDrive will not start any server or service when I am not connected via WLAN:
Screenshot-2019-02-14-18-39-37.png

My external IP is something like 37.x.x.x
 

poppyto

Senior Member
Jul 17, 2009
58
40
This is the speed of your WiFi network check the FAQ inside the app to get the speed you can obtain.
 

thorazine74

Senior Member
Jul 24, 2010
188
47
You can use Landrive via 3G (ip is bint on 0.0.0.0 => connections can going from everywhere), but it can't resolve Netbios name on public network, so you have to connect to the public IP address directly (because netbios resolution uses broadcasts, not allowed on public network).

Be sure the connection is bint on TCP 445 (Root), if not, be sure to use a client which allow other ports (LAN drive can do it too - ios/android/win10).

In the same time, maybe your provider doesn't allow privilegied ports (<1024), so try to bind on a port like 1445, and check a client to 1445 too .
Isn't a huge security risk to bind a samba server to 0.0.0.0 running SMBv1 protocol with anonymous login privileges?
Just to clarify, if start up the server connected to my WiFi LAN, the server processes will still listen on all ip addresses? So if lose the WLAN connectivity and the phone switches to cell data connection the server will still answer to connections coming from public ip addresses by default?
 

poppyto

Senior Member
Jul 17, 2009
58
40
Isn't a huge security risk to bind a samba server to 0.0.0.0 running SMBv1 protocol with anonymous login privileges?
Just to clarify, if start up the server connected to my WiFi LAN, the server processes will still listen on all ip addresses? So if lose the WLAN connectivity and the phone switches to cell data connection the server will still answer to connections coming from public ip addresses by default?

I did the test and couldn't connect with my ISP, I guess incoming connections are blocked from the ISP.
SMB1 or SMB2 or any protocol (FTP) with anonymous access has a security risk.
By default I set Landrive to have a popup for accepting incoming connections. People who remove that generally know what they do.
 

boxz0rd

New member
Mar 5, 2019
2
0
transfer rate

My upload speed tops at 17MB/s over gigabit lan from PC to Android TV box (amlogic s905x2 with native usb3.0 + gigabit lan) with usb 3.0 HDD attached, has anyone ever got higher transfer rates?
 

M_Ru

New member
Mar 16, 2019
1
1
My mistake, I forget to tell you to activate "Starting the server at startup of the app" too.
It can take 1 to 2 minutes before the service start (waiting for the Android signal...)

So to auto connect at reboot :

* Start the app after OS boot completed : ENABLED
* Boot option : Always show UI : DISABLED
* Starting the server at startup of the app : ENABLED
* Run as Service : ENABLED

Stephane

Hey.I have 2 devices. 1) Mecool KM9 Android TV Box. OS Android TV 8.1. 2)Xiaomi Mi A1 PixelExperience_tissot-9.0-CAF-OFFICIAL.
Server autostart does not work on both devices after reboot.
Both devices have the same settings:
* Start the app after OS boot completed : ENABLED
* Boot option : Always show UI : DISABLED
* Starting the server at startup of the app : ENABLED
* Run as Service : ENABLED
Both devices are rooted Magisk.
After you manually start the application, the devices are immediately available on the local network.

Sorry for my bad English, Google translate)))
 
Last edited:
  • Like
Reactions: nvuphi

nvuphi

Member
Oct 10, 2014
46
15
Hey.I have 2 devices. 1) Mecool KM9 Android TV Box. OS Android TV 8.1. 2)Xiaomi Mi A1 PixelExperience_tissot-9.0-CAF-OFFICIAL.
Server autostart does not work on both devices after reboot.
Both devices have the same settings:
* Start the app after OS boot completed : ENABLED
* Boot option : Always show UI : DISABLED
* Starting the server at startup of the app : ENABLED
* Run as Service : ENABLED
Both devices are rooted Magisk.
After you manually start the application, the devices are immediately available on the local network.

Sorry for my bad English, Google translate)))
Me too but I have 2 phones:
One 's Xiaomi Mi A1 with Oreo 8.1 ROM (AOSP Custom ROM), has same problem as yours
One 's Xiaomi Redmi 4 Prime with Nougat 7.1.2 ROM (AOSP Custom ROM), has run app boot up normal.
Sorry for my bad English
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    iUUVcmJE6gWKe-YlSlReNiLeedXOUVaFtqxKZ1eqye5MU3LoQBi_0WK4vzgGRa6EvWY=s180-rw


    Introduction:
    LAN drive is an easy SAMBA Server for Android (iOS & WM10) devices.
    Access all your phone files - InternalStorage,SDCard,ExternalHDD - in read/write remotely with common softwares :
    • MAC OS Finder
    • Windows File Explorer
    • ES Explorer
    • VLC
    • Kodi
    • Any SMB client capable app
    You just have to be on the same network (WiFi) to make it work.

    There are 3 default network sharings activated :
    • 'LANdrive' : storage bound with the app (deleted when you clear cache of the app)
    • 'Root' : "/" access
    • 'InternalStorage' :
    • 'SDCard'|'HDD': Any other external storage automatically detected
    You can create your custom sharings too (bound to the app or select one with file picker)

    The app is free with an InApp purchase for unlocking the bandwidth (0.5 MB/s in trial) and remove ads, otherwise all is functionnal.
    We released it first at the end of January 2018 and are looking for feedback and help in making LAN drive the best it can be.

    Presentation Video:


    Works without ROOT:
    Read the tutorial inside the app (works on Windows / MAC / Linux)


    Features:
    • Copy/paste/rename files and folders on your device with MAC OS Finder, Windows File Explorer, Android ES Explorer, etc.
    • Access the 'external' storage (Photos and Videos included) in your device as a network shared folder.
    • Access the Root folder and all directories including SD Cards or external HDDs as network shared folders
    • View your multimedia files with embedded mediaplayer (or external app).
    • Your device name appears automatically in MAC OS Finder, Windows File Explorer, Android ES Explorer, VLC, Kodi etc.
    • Manage your device name (NetBios) and Workgroup name.
    • 3 authentication types : Anonymous with popup confirmation, Anonymous and Users with custom rights
    • Manage users and create your own shared folders with credentials.
    • View users connected and disconnect them.
    • Unlimited connections (several users can access your sharings at the same time)
    • 5 languages : English, Spanish, French, German, Italian.
    • Launched as a service in the background : Access your SMB server while using other apps
    • Optionally start the app after boot device completed
    • Protocols SMB1 (CIFS) and SMB2 protocol (enable/disable via settings)

    How Does It Work?
    LAN drive uses its own SMB1 & SMB2 implementation with an efficient way to announce itself on clients (your phone appears automatically in other software, even in Windows 10 File Explorer).
    You can choose 3 ways to authenticate :
    • Popup confirmation (default)
    • Anonymous
    • Create users with custom rights
    Even if it requires root access, LAN drive is non intrusive (not installed in app systems), nothing will stay in the system after uninstall it.


    Known issues
    • App startup time could be very slow (could take 10 seconds depending the devices).
      It's not something we can improve at the moment (framework loading Xamarin.Forms)
    • App Size : 26MB. We can't make it better, again Xamarin.Forms have some mandatory DLL to load to work

    Use cases:
    Some users don't know the powerfull use of SMB server, here some use cases:
    • Backup files, like you do with an USB key, but without the USB cable, and with security credentials.
    • Watch your movies/photos on your TV with Kodi (or VLC) streaming directly from your Phone.
    • Use a Backup utility from MAC or PC to create a scheduled task which backup|synchronize your movies/photos every days.
    • Developers|Hackers could browse Root "/" and edit/delete/copy/paste any files without using adb shell


    Who Are We?
    Webrox is a little french company of 2 persons, we build apps since 2011, check the Webrox store page here.
    We made LAN drive to have a very easy multiplatform SMB Server.



    How To Download:
    Google Play Download



    XDA:DevDB Information
    LAN drive, App for all devices (see above for details)

    Contributors
    poppyto

    Version Information
    Status: Stable
    Current Stable Version: 1.4
    Stable Release Date: 2018-05-14

    Created 2018-05-15
    Last Updated 2018-11-19
    2
    Some minutes ago LD does not shut down when WiFi was off or does not return when WiFi comes back. I could try this many times.
    Then I forced close LD (with the back key) and LD behaves normal again. I do not know how long :(

    This looks for me that perhaps a variable in your app is not always synchronized to the real state.

    Ok got the bug, my code only works if you push the nav (center) button instead of back button (which close the page) => I fix it now :)
    2
    No, that is not normal: during 14h 59m your app has during 98.6% of this time wakelocks. The battery drops normally during night from 100 to 95% but with your running discharges to ~70%.
    As you can see other apps in my screenshot they have all >0.2 %.
    Your app should detect this unused time during night (deep sleep) and when WLAN is off, there is no need to permanent check.
    BetterBatteryStats is a perfect app to detect things.

    And thank you to solve the other two points.

    You will have a lot of work for this app (fine tuning) :)

    Ok, I just sent an update,

    So, based on your comment about the battery drain:
    I add an auto stop after inactivity time (no connection on the server) you can change it in the settings (default:30min), I hope it will resolve your battery issue ;) let me know !

    Here the new changelog for 1.5 (will be available in 15 minutes I guess) :

    • New feature : Auto Stop server after inactivity time (change the duration in the settings, default : 30mn)
    • New feature : Backup and restore your settings on an external file
    • New behavior : Doesn't stop the server when button back on the homepage
    2
    How do you define inactivity? No more transfer over WLAN alone or over Lan Drive? Is screen on or off?



    That is ok.



    My Sony does this in the firmware but I think every Android smartphone does this too.
    Screenshot only in German.


    To the inactivity period: did you changed something here since v1.5? I remember that the LD server always stopped after the chosen time even the screen was on. So I did no longer used this function.

    The change logs are now complete for 1.8 and 1.9, don't know what happened on two phones.



    A little fast test:
    I selected two minutes, unplugged the charger, the screen shuts off and 10 mins later the LD server still is running and I can access the shares.
    So the phone can not go to deep sleep because of the wakelocks :(


    I attache a new debug file

    I sent the 2.0 version, now the server auto stop when WLAN is down and restart when WLAN is up again.



    On the new version (2.0), it include busybox => it should work for you now :)
    1
    You're welcome :)
    Here are the previous messages from the original thread

    I hope no one will be upset with my post, specially the OP.

    But since there is no update for Samba Filesharing since 2014, I feel obligated to share my discovery.

    Yesterday I found an alternative app in play store: LAN drive - SAMBA Server.

    In preliminary tests it works well and seems faster than Samba Filesharing. But be aware that the free version has a speed limit. To use LAN drive at full speed you have to pay.

    The app has been released on January 25, 2018. There are constant updates and the dev seems active and responsive.

    I made this discovery because there was no way Samba Filesharing would work in my Moto Z2 Play. Due to the nightmare of using MTP I started searching for alternatives. I found LAN drive and it worked like a charm.

    When creating your accounts and shares, my advice is first create all your shares and then add users. If you follow the app suggested sequence you will end up with your custom shares not accessible from your PC.

    If you use file synchronization software be aware that LAN drive has a bug. Files written to the phone do not get the time stamp updated to the source file time stamp. I will report this to the dev and hope it gets fixed soon.

    Hello svbarbosa, I'm the LAN drive developer.
    I will fix the issues of users rights and wrong timestamp on monday.
    I would like to tell other users LAN drive is a non intrusive app (it doesn't install anything in the system apps and it only work when you started it, security is a big thing these days).
    If anybody have a feedback, feel free to test LAN drive and feedback me ;)

    @poppyto, welcome to XDA!

    Glad to confirm you are really active and responsive. ;)

    I have also seen your answer to my email and will get on it soon. Some family errands to run first. :p

    Take your time to fix the issues. We have been waiting for so long to have samba support that we can sure handle waiting some more time to have your fixes.

    And please do start the LAN Drive app thread. I am a long time user of Samba Filesharing and despite it seems to be dead in terms of new development, somehow I feel weird talking about a replacement app here. :eek:



    I had problems with Samba Filesharing not working in my Moto Z2 Play, it is my first phone where Samba Filesharing would not work. Shares do not appear on my PC.

    I did some research and foung a great replacement app. Check it out in my previous post #235.

    Can you make LAN drive compatible with android 2.3 too?
    Or
    Can you give me another version of it which is compatible with android 2.3?

    Unfortunately, Xamarin Forms needs at least Android 4.0.3, and I can't make it better :/

    I was happy to found your app, but nothing works (I have paid in the meantime):
    1. I cannot make a new user
    2. I cannot change sharings etc.
    3. I cannot change device name and so on.

    your app does not accept any input :(

    Until now I am using Samba FileServer or SambaDroid

    You could make a own XDA thread here if your app really works.

    Sony Z1c stock rom 5.1.1 rooted

    Hello tramp20,

    I will open a support thread for LAN drive. I am not the developer, just a user of the app willing to help.

    LAN drive is working fine in three of my phones.

    In the meantime please let us know your phone model, Android version / rom, kernel if not stock and from which device/PC you are trying to access the phone.

    1.
    I wrote this two times: Sony Z1c stock rom 5.1.1 rooted

    As I cannot change the settings I cannot get a connection to my Win10 PC.

    As I wrote too I have no problems with Samba File Server or SambaDroid.

    2. On a very old LG P970 (Android 4.x) I can change the settings of this app but I don't see this phone in my network because Lan Server catches a wrong IP address (perhaps mobile and not WLAN).

    This app is in my eyes only alpha quality until now.

    My bad. I am having a tough work period and missed the last line in your post. :p

    For now, in your Sony, please uninstall and reinstall from Play Store. This will wipe data for LAN Drive make sure you have the latest update.

    Then create one user and one share. It should work.

    Turn of mobile data in settings and check if you can see it from your PC.

    Hi,
    since Lan Drive v1.3 I can configure this app now:)
    But there are problems of course:
    1. During deep sleep of my device I have wakelocks the whole time (battery is discharging badly), See attached screenshot.
    2. If I de-install the app and make a fresh new installation all shares are visible and I have access (not always). But after a short time or after stopping and restarting this app my device is no longer visible. I tested this on two smartphones several times. That is terrible.

    Wishes.
    A possibility to save and restore the settings on the (external) sdcard.
    2. If I tap on the back key the should NOT stop the smb server.

    If the smb server is running the transfer rate is very good compared to the old samba file server

    Well done. You beat me! Could not find the time to start the thread as I offered. :eek:

    Truth is I'm having an unusually tough period at work.

    Fortunately it is almost over and I will be able to help LAN drive development again real soon.