WSL big wish for please !! Access Linux disk from REMOTE machine on sameLAN


jimbo45

Well-known member
Pro User
VIP
Local time
6:12 PM
Posts
5,931
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Hi folks -- WSL2 has really improved these days with decent Linux kernels -- I wish the Linux machine would be accessible from OTHER Windows or even Linux remote hosts - especially if all machines on the same LAN. The problem I think is that the networking on WSL uses NAT

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1492 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:4e:ae:13 brd ff:ff:ff:ff:ff:ff
altname enx00155d4eae13
inet 172.22.169.100/20 brd 172.22.175.255 scope global eth0
valid_lft forever preferred_lft forever


However my LAN addresses are all 192.168.4.XX

Maybe some network mirroring -- ???

What I want is for a REMOTE machine to be able to access a Linux disk mounted on the WSL as say /mnt/DV0.

Googling gives plenty of answers the OTHER way around but only on a local machine - e.g Wsl accessing Windows drives but that's not a problem !!!

Any solutions anyone.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Hi folks -- WSL2 has really improved these days with decent Linux kernels -- I wish the Linux machine would be accessible from OTHER Windows or even Linux remote hosts - especially if all machines on the same LAN. The problem I think is that the networking on WSL uses NAT

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1492 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:4e:ae:13 brd ff:ff:ff:ff:ff:ff
altname enx00155d4eae13
inet 172.22.169.100/20 brd 172.22.175.255 scope global eth0
valid_lft forever preferred_lft forever


However my LAN addresses are all 192.168.4.XX

Maybe some network mirroring -- ???

What I want is for a REMOTE machine to be able to access a Linux disk mounted on the WSL as say /mnt/DV0.

Googling gives plenty of answers the OTHER way around but only on a local machine - e.g Wsl accessing Windows drives but that's not a problem !!!

Any solutions anyone.

Cheers
jimbo
I have never used WSL and probibly never will.. But cant you configure the virtual network adapter to have the same subnet?
Another way (depending on your router) (just hit me wile i was editing my offtopic question, that it has to be within the windows machine and not a separate subnet in your network... i have not had my two cups of morning coffee yet).
But within WSL/windows it has to be a routing function like you have in QEMU/KVM, i wonder if you can set up a rule there... or if you have to change the subnet of the VM so you can reach another subnet.

offtopic: what is your opinion on WSL as i never touched it?
 

My Computers My Computers

  • At a glance

    Linux: Debian, Kali-linux, Alma, Win:7,10IoT,...i3, i5 and i7 From 2gen to 9th gen... Server ...
    OS
    Linux: Debian, Kali-linux, Alma, Win:7,10IoT,2012R
    Manufacturer/Model
    HP Elitebook 840, AsusX53, Aspire E1-572. AsusUX32A, HP Pro3130mt+3010mt, HP Proliant ML150, 3xCustom-PC, i3, i5, i7
    CPU
    i3, i5 and i7 From 2gen to 9th gen... Server dual Xenon
    Hard Drives
    Sata, M.2, SAS
  • At a glance

    Retro: 2003server.XPpro, Win2000, Win98SE, Wi...Oldest intel 8088 up to P4 dual core
    Operating System
    Retro: 2003server.XPpro, Win2000, Win98SE, Win95, Win3.11, MS-DOS, IBM-DOS
    Manufacturer/Model
    Commodore, AST, Fujitsu, Compaq, etc etc. etc Around 15 desktops and 20 laptops in the collection
    CPU
    Oldest intel 8088 up to P4 dual core
    Hard Drives
    MFM, IDE, SCSI
I have never used WSL and probibly never will.. But cant you configure the virtual network adapter to have the same subnet?
Another way (depending on your router) (just hit me wile i was editing my offtopic question, that it has to be within the windows machine and not a separate subnet in your network... i have not had my two cups of morning coffee yet).
But within WSL/windows it has to be a routing function like you have in QEMU/KVM, i wonder if you can set up a rule there... or if you have to change the subnet of the VM so you can reach another subnet.

offtopic: what is your opinion on WSL as i never touched it?
Only recently started playing with it - if you use a distro like Fedora f44 then it's quite reasonable especially as you can run a few decent windowed (GUI) type apps without needing a full GUI desktop) . It is a bit limited compared to having a full blown virtual machine -- I was hoping for example of being able to attach 1 or 2 Linux disks (XFS formatted) to it and having these available as network drives accessible to other machines on my LAN so I could use these as data backups, media servers etc while running Windows.

Conclusion so far -- perfectly OK for people who are working on a single machine, just want a few Linux functions and don't want the hassle of using full blown VM's. It certainly has improved - but Networking is a letdown (Mind you ever since Windows was first launched Networking has always been a pain !!!).

It's also better on the whole than creating a Linux VM running under HYPER-V which is itself quite restrictive too and not all that easy to set up nicely.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Only recently started playing with it - if you use a distro like Fedora f44 then it's quite reasonable especially as you can run a few decent windowed (GUI) type apps without needing a full GUI desktop) . It is a bit limited compared to having a full blown virtual machine -- I was hoping for example of being able to attach 1 or 2 Linux disks (XFS formatted) to it and having these available as network drives accessible to other machines on my LAN so I could use these as data backups, media servers etc while running Windows.

Conclusion so far -- perfectly OK for people who are working on a single machine, just want a few Linux functions and don't want the hassle of using full blown VM's. It certainly has improved - but Networking is a letdown (Mind you ever since Windows was first launched Networking has always been a pain !!!).

It's also better on the whole than creating a Linux VM running under HYPER-V which is itself quite restrictive too and not all that easy to set up nicely.

Cheers
jimbo
Okay, that sounds promising as a compliment in windows. :-)
Yeah i remember early networking.. but i dont know if i would remember how to set up networking in ms-dos or even in win 3.11 now in 2026 *lol* 😅
 

My Computers My Computers

  • At a glance

    Linux: Debian, Kali-linux, Alma, Win:7,10IoT,...i3, i5 and i7 From 2gen to 9th gen... Server ...
    OS
    Linux: Debian, Kali-linux, Alma, Win:7,10IoT,2012R
    Manufacturer/Model
    HP Elitebook 840, AsusX53, Aspire E1-572. AsusUX32A, HP Pro3130mt+3010mt, HP Proliant ML150, 3xCustom-PC, i3, i5, i7
    CPU
    i3, i5 and i7 From 2gen to 9th gen... Server dual Xenon
    Hard Drives
    Sata, M.2, SAS
  • At a glance

    Retro: 2003server.XPpro, Win2000, Win98SE, Wi...Oldest intel 8088 up to P4 dual core
    Operating System
    Retro: 2003server.XPpro, Win2000, Win98SE, Win95, Win3.11, MS-DOS, IBM-DOS
    Manufacturer/Model
    Commodore, AST, Fujitsu, Compaq, etc etc. etc Around 15 desktops and 20 laptops in the collection
    CPU
    Oldest intel 8088 up to P4 dual core
    Hard Drives
    MFM, IDE, SCSI

Latest Support Threads

Back
Top Bottom