Access the localhost on same lan

Hello everyone,
I have installed Erpnext 14 on my Windows11 (Ubuntu 22), It’s working totally fine.
The url to access the site is 127.**.. :8000 (i guess it’s my local machine address)
Now i want to access the same site on another computer and I’m on a same wifi connection too.
Please help and share the steps if possible.

Thank You

Hi @rs115199789:

I assume you are using WSL or WSL2, right? See this.

Thanks for the reply, and yes im using the WSL, but im looking for a clear step by step instruction video as the website is not clear to me and i indeed tried the steps.
If possible do share Thanks Again.

Just this:

PowerShellCopy

netsh interface portproxy add v4tov4 listenport=4000 listenaddress=0.0.0.0 connectport=4000 connectaddress=192.168.101.100

To obtain the IP address, use:

  • wsl hostname -I for the IP address of your Linux distribution installed via WSL 2 (the WSL 2 VM address)
  • cat /etc/resolv.conf for the IP address of the Windows machine as seen from WSL 2 (the WSL 2 VM)

Using listenaddress=0.0.0.0 will listen on all IPv4 ports.

Anyway … for this cases I use my hidden tool: Google. :wink:

Hi, @avc
I tried and its forwarded successfully, However when i try to open the erp server (172.61.**.*) on another computer within the same lan it’s not opening it, also when i try to do the port forward on my router it says Error code: 4937
The IP address is not on the same subnet with LAN IP address.
Please help .
Thanks

Hi @rs115199789:

If you are in the same network, no port forwarding is needed on your router …
Please, share your scenario with detailed network configuration: host ip address, wsl address, local network ip address …

Hi @avc
Yes im on the same network in my laptop i use the wifi on my other computer i use the lan but we are on the same network also i tired with lan cables too but i’m unable to access the ERP, i tried i ip address, machine address with port number and without port number but still no luck.
here are my ipconfig and ifconfig details.
Wireless LAN adapter Wi-Fi:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::1925:4e8b:78be:97e8%22
IPv4 Address. . . . . . . . . . . : 192.168.0.103
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1

Ethernet adapter vEthernet (Default Switch):

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::da19:1858:33f9:b03d%19
IPv4 Address. . . . . . . . . . . : 172.25.32.1
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . :

Ethernet adapter vEthernet (WSL (Hyper-V firewall)):

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::ed2e:6897:fc:f942%36
IPv4 Address. . . . . . . . . . . : 172.22.48.1
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . :


eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.22.61.10 netmask 255.255.240.0 broadcast 172.22.63.255
inet6 fe80::215:5dff:fec8:e73b prefixlen 64 scopeid 0x20
ether 00:15:5d:c8:e7:3b txqueuelen 1000 (Ethernet)
RX packets 268 bytes 86459 (86.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 136 bytes 113692 (113.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 10992 bytes 12954868 (12.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10992 bytes 12954868 (12.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

I use this address to access the ERP- http://172.22.61.10

Looking forward for the solution Thank you

@avc any update