USB over IP - how can I access the USB Drive now?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
boris03
DD-WRT User


Joined: 17 Jan 2019
Posts: 148

PostPosted: Sat Mar 23, 2019 11:42    Post subject: USB over IP - how can I access the USB Drive now? Reply with quote
Using the newest DD-WRT built on my TP-Link C1900 and successfully enabled the USB drive and SAMBA in NAS settings. I can access in Windows all OK.
Now I see there is a USB over IP option and I activated this.
But nothing happened - How can I now access the USB over IP?
I cannot see a new IP for the USB drive?
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sat Mar 23, 2019 13:10    Post subject: Reply with quote
USB over IP (rather, vice-versa) is supposed to be for tethering to your phone, I think?
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Sat Mar 23, 2019 15:48    Post subject: Reply with quote
kernel-panic69 wrote:
USB over IP (rather, vice-versa) is supposed to be for tethering to your phone, I think?

Actually that is only part of one end resault...

I've seen this stated in verbatim on OpenWrt & Tomato forums/tutorials....
So why not one more time again here?

Not my words....
Quote:
USB over IP tunnel
USB/IP Project aims to develop a general USB device sharing system over IP network. To share USB devices between computers with their full functionality, USB/IP encapsulates "USB I/O messages" into TCP/IP payloads and transmits them between computers.


To the OP.... I think you are looking at it in the wrong way...

I also would bet it was already internationally enabled when you setup your samba share. As you said it is working.¯\_(ツ)_/¯

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sat Mar 23, 2019 16:36    Post subject: Reply with quote
@Dr_K, thanks for the clarification. Of course, I am still trying to regain the learning curve on some things. USB over IP didn't exist when I was knee deep in a Pentium II Slackware box for an internet gateway / router with no wireless anything. Back in the truly masochistic days of Slack, even. Wink I had migrated to Japan about the time it came about for the last 18 months of active duty, anyway, and all of my toys were in storage.
boris03
DD-WRT User


Joined: 17 Jan 2019
Posts: 148

PostPosted: Sat Mar 23, 2019 17:47    Post subject: Reply with quote
I don't get it. Why do i need this flag?
Is it of any value, when I use Samba or is it something different?
I thought I can use to connect to the USB drive by entering an IP, but seems this is not the case.

And why should I search for tomato when I don't like tomatoes? I am using DD-WRT and so I can set this flag and search here for a kind of help.
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Sat Mar 23, 2019 19:34    Post subject: Reply with quote
boris03 wrote:
I don't get it. Why do i need this flag?
Is it of any value, when I use Samba or is it something different?

Again....
Buy its discription..it would appear to be "internally/auto" enabled when using Samba, FTP, DNLA, USB connected printer &/or wan over USB..or possibly even CIFS

Only the dev's know for sure...but it would appear to possibly be an artifact leftover from the initial support for USB years ago
boris03 wrote:
I thought I can use to connect to the USB drive by entering an IP, but seems this is not the case.

Well....Technically you DO enter your router's "ip address" with a specific port number of course...To reach Samba, FTP, DNLA &/or USB connected printer.....NO?
boris03 wrote:
And why should I search for tomato when I don't like tomatoes? I am using DD-WRT and so I can set this flag and search here for a kind of help.

I hope, for your sake that was a joke?

No one said to search anywhere...for anything..

Did I not bring the info over here for you in the quote?

I was only being clear where I've seen this information before.. All three places now containing it..in verbatim

Obviously you can not get any real info searching here...or you would not have created this thread....Yes?

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
boris03
DD-WRT User


Joined: 17 Jan 2019
Posts: 148

PostPosted: Sat Mar 23, 2019 19:47    Post subject: Reply with quote
Now I got it, thanks a lot

But I still don't like tomatoes Smile
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sun Mar 24, 2019 0:13    Post subject: Reply with quote
The way smbd and nmbd (Samba) works is you type in the Windows PC name and shared folder with a forward slash ( / ). The USB over IP may be an interface with local dns via dnsmasq or by plain IP address vice windows host name. That's the best I can come up with.

As far as liking Tomato(es), FreshTomato firmware doesn't require a bunch of monkey-ing around and workarounds and scripts to work out of the box. DD-WRT is masochistic. I guess my Slackware background is the only reason why I even bother to put up with testing it. Some folks have given up on even reporting problems, because it falls on deaf ears.
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Sun Mar 24, 2019 6:38    Post subject: Reply with quote
kernel-panic69 wrote:
The way smbd and nmbd (Samba) works is you type in the Windows PC name and shared folder with a forward slash ( / ). The USB over IP may be an interface with local dns via dnsmasq or by plain IP address vice windows host name. That's the best I can come up with.

Are you trying to say that all the above mentioned services hosted on the router are not accessed by the routers ip address????

What do you think DNS.. or NetBIOS in your above description are doing?

FTP is on the router's ip address on port 21

USB connected printer is on the router's ip address on port 9100

Samba is on the router's ip address on TCP ports 139 & 445....
Irregardless of how or from what it is resolved from

Have you actually tried to access a samba share hosted on the router? Or any other for that matter...
Especially from a client that does not use NetBIOS or on a network without local DNS?
Or if you don't have that type of client to test from...
Just try to set up a connection by entering the servers ip addresses instead of its host name or NetBIOS name.....& watch it connect.

Maybe I'm wrong & you are right...that it is a new/old mystery "interface"....that accomplishes all the same...& we have no way to set it up..or use it...
If that's somehow the case....my apologies ¯\_(ツ)_/¯

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
boris03
DD-WRT User


Joined: 17 Jan 2019
Posts: 148

PostPosted: Sun Mar 24, 2019 8:27    Post subject: Reply with quote
Really can I access the Samba USB drive entering the IP plus 139or445?
I wasn't aware but when I'm trying now I cannot access when connected to the router in Wlan.
139 says nothing, 445 the browser at least tries to reach something but not successful.
How would that work entering IP and Port?
Because I am searching for the easiest way to access that Samba USB drive also via my OVPN connection.
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Sun Mar 24, 2019 9:31    Post subject: Reply with quote
Seriously... This is all now going to get twisted around into this nonsense?

Did I really say that your "web browser" was somehow going to know how to use/access the SMB protocol let alone connect to two ports at the same time?

Maybe this whole concept of utilizing yout router's USB ports over an ip based network is just too much to grasp....so lets stop & just call it "magic".

As far as your new search for an easy solution to acess samba...

That is even more trivial....??

My properly set up samba & FTP servers can be connected to while remotely connected over my properly set up OpenVPN server without issue of any kind.
No matter if they are hosted on router or on another device within the local network....More "magic" I guess...

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
boris03
DD-WRT User


Joined: 17 Jan 2019
Posts: 148

PostPosted: Sun Mar 24, 2019 11:06    Post subject: Reply with quote
So what should I say, I found it myself.
When connected via OVPN I can access the Samba share on Android easily with Total Commander and the LAN extension, don't need ftp at all.

On the other hand when I read your last comment quite a lot was written but nothing of that was helpful, not one word.
Did you also notice in forums there are many people writing comments for nothing?
Ask yourself - sorry to say
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sun Mar 24, 2019 17:09    Post subject: Reply with quote
@Dr_K, "net use //server/share". Login batch files of yore on WinNT4, 2K, XP for Windows server shares or Linux Samba server shares. That's ancient methods from over 20 years ago, I seem to think it even could be carry over from NOVELL, but I'd have to verify (it's been a minute or five). I'm sure there's new/old methods I may not be familiar with, and I am always learning....
MolaMola
DD-WRT User


Joined: 07 Mar 2013
Posts: 63

PostPosted: Sun Mar 24, 2019 17:45    Post subject: Reply with quote
What a strange discussion.. I'm by no means an expert but I've looked into this several years ago and I immediately assumed USB over IP means exactly that: being able to use a USB device connected to another machine on the network as if it were physically connected to or plugged into the local host. So if I were to setup a USB over IP connection to my router I could connect to an external harddrive plugged into the router's USB port and access its file system directly by mounting it with the OS on my computer. All data that goes over the USB cable between the harddrive and the router gets forwarded to my laptop where the USB over IP client presents that data as if it were coming from a physical device. The OS wouldn't know the difference between this setup and having the drive physically plugged into the laptop's USB port.

Back then I used Windows on my pc. Development of the USB over IP client for Windows seemed abandoned and unfortunately didn't work on Windows 10 so I was never able to test it or its performance. I use Linux now and I guess I could fire this project up again but I'll stick to using the standard samba protocol instead for this application.

The reason for trying USB over IP back then was the slow samba protocol on devices such as routers or my Raspberry Pi. You'd think data rates noticeably faster than 8-9 MB/s would be possible, especially with a quad core Raspberry Pi 3. I'm considering buying a multi-bay NAS system but those things are expensive and again, why are NAS ARM systems so much better at it then my Pi? But that's a whole other topic.

By the way, I suspect it's possible to use any kind of device with USB over IP and not just harddrives or SSDs. The protocol probably just transfers the detection of the USB device to a different machine. I always found that an interesting idea but I also read it comes with certain security issues which is probably why this never really became a thing. I also wonder why it's still in DD-WRT when nobody seems to really use it.

*Addendum*

Here's the info I used back then:

http://usbip.sourceforge.net/

Unfortunately it seems to be dead. Plus I remember now that my point was to be able to use my USB printer bidirectionally over the network with its standard software tools such as for cleaning the printer head once in a while or monitoring the ink levels. The standard USB print function in DD-WRT only allows one directional print commands. I have a network printer now so I don't need it anymore but if you use Linux or an old Windows version you might still be able to fire it up.
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Sun Mar 24, 2019 19:36    Post subject: Reply with quote
boris03 wrote:
So what should I say, I found it myself.
When connected via OVPN I can access the Samba share on Android easily with Total Commander and the LAN extension, don't need ftp at all.

You should say "I'm Sorry" to the forum for creating yet another mistitled thread that you were too confused to actually explain what your problem was....again.. But hey congratulations anyways...Though I don't recall anyone telling you that you needed FTP???
boris03 wrote:
On the other hand when I read your last comment quite a lot was written but nothing of that was helpful, not one word.
Did you also notice in forums there are many people writing comments for nothing?
Ask yourself - sorry to say

Sorry, no one can teach you C-O-M-P-R-E-H-E-N-S-I-O-N...at least not off a spoon.
Most all my comments in this thread were directly in context to your OP...that's how it works?
You can't get all aggravated when no one else can crawl into that box of rocks to determine what you thought you meant to ask about? Or realize that your OP & unclear issue(s) (until now) actually have no real relation


To be honest, what I have noticed...& to be even more a distraction/nuisance..

That in these forums there are a handful of people that:
:
Can't comprehend what is clearly available all around them. So they are compelled to create a new thread, asking off the wall questions on well documented topics & then to top it off they struggle to even put their "unique" issues in to words that actually explain it.
:
Those that try to hijack someone else's thread because they "somehow think" it is similar enough to one of their own created threads that have gone without an answer, at least one that they have been able to comprehend.
:
Feel these types of forums are their own personal nanny, creating way, way more new threads of "?new?" topics than actually contributing to anyone else's with any information or answers...Of any kind.
:
That I believe hold the record of longest chains of multiple posts in a thread....multiple times, carrying on a conversation with themselves that no one else either can or wants to bother following along with any longer.

But wait...It's not so much the forums, as it is from taking a look at your profile & history ¯\_(°_o)_/¯

Maybe you should ask/reflect upon yourself - sorry to say/point out Rolling Eyes


@kernel-panic69 All I'm willing to say, again, is that in your description " "net use //server/share"
Can be directly entered as &/or will be translated by NetBIOS into "net use //ip address of server/share"

At least to my understanding, if you put it on paper, better yet in a picture... All this two way traffic over an ip based network, directly tied to a physical ip address (even if shared, though with different port numbers) to the router's physical USB ports... Sure does resemble a tunnel of sorts to the router's USB over the ip network, to multiple clients simultaneously. Even if it still needs at least one of, or several other packages to fully implement to your particular needs.


@MolaMola Thanks for the info, while I did find that interesting to review...
I struggle to agree that an obscure project from almost a decade ago..that never left the Alpha stage, with no real commits in almost as many years or any references (that I could find) on any router firmware type projects. Was enough to be the direct cause for BrainSlayer to bother creating a webif/GUI option for.. Especially when he does not hesitate to remove code that a some of us are still using...or now use to use..
Though I agree, as earlier mentioned that it was probably a leftover artifact.

Nor do I feel it will help @boris03 figure out how to use Total Commander on android...yea where'd that come from?...right?

Or are you saying that you needed to enable this particular option in the GUI to make what you were trying to accomplish work?...back in the day.
I do agree with most the rest that you said.

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum