lwsjs / local-web-server

A lean, modular web server for rapid full-stack development.
MIT License
1.2k stars 85 forks source link

Output doesn't show the localhost and 192.168.xxx.xxx #174

Closed lomirus closed 2 years ago

lomirus commented 2 years ago

Here's the output when I input the ws:

$ ws
Listening on http://lomirus-manjaro:8000

And ifconfig:

$ ifconfig
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        inet6 fe80::42:5bff:fe10:fc11  prefixlen 64  scopeid 0x20<link>
        ether 02:42:5b:10:fc:11  txqueuelen 0  (Ethernet)
        RX packets 24  bytes 2047 (1.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 31  bytes 14129 (13.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:2b:67:d8:8b:cb  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        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<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 19881  bytes 23943305 (22.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19881  bytes 23943305 (22.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth16eff25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::c0bc:6fff:febf:77a6  prefixlen 64  scopeid 0x20<link>
        ether c2:bc:6f:bf:77:a6  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 23  bytes 1920 (1.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vethc942973: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::186d:7aff:fecc:1570  prefixlen 64  scopeid 0x20<link>
        ether 1a:6d:7a:cc:15:70  txqueuelen 0  (Ethernet)
        RX packets 24  bytes 2383 (2.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 44  bytes 15095 (14.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.155.171  netmask 255.255.255.0  broadcast 192.168.155.255
        inet6 fe80::7275:f056:7830:b7  prefixlen 64  scopeid 0x20<link>
        ether 6c:6a:77:a1:2c:91  txqueuelen 1000  (Ethernet)
        RX packets 24311  bytes 25353921 (24.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14440  bytes 2519051 (2.4 MiB)

I think it should also show the http://127.0.0.1:8080 and http://192.168.155.171:8080. Though I can just access them (by 192.168.155.171, not lomirus-manjaro), the URLs didn't show.

Other information:

75lb commented 2 years ago

do you have the latest version of local-web-server installed?

On Thu, 23 Jun 2022, 07:22 Lomírus, @.***> wrote:

Here's the output when I input the ws:

$ ws Listening on http://lomirus-manjaro:8000

And ifconfig:

$ ifconfig docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 inet6 fe80::42:5bff:fe10:fc11 prefixlen 64 scopeid 0x20 ether 02:42:5b:10:fc:11 txqueuelen 0 (Ethernet) RX packets 24 bytes 2047 (1.9 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 31 bytes 14129 (13.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eno1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 00:2b:67:d8:8b:cb txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) 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 19881 bytes 23943305 (22.8 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 19881 bytes 23943305 (22.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

veth16eff25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::c0bc:6fff:febf:77a6 prefixlen 64 scopeid 0x20 ether c2:bc:6f:bf:77:a6 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 23 bytes 1920 (1.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vethc942973: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::186d:7aff:fecc:1570 prefixlen 64 scopeid 0x20 ether 1a:6d:7a:cc:15:70 txqueuelen 0 (Ethernet) RX packets 24 bytes 2383 (2.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 44 bytes 15095 (14.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.155.171 netmask 255.255.255.0 broadcast 192.168.155.255 inet6 fe80::7275:f056:7830:b7 prefixlen 64 scopeid 0x20 ether 6c:6a:77:a1:2c:91 txqueuelen 1000 (Ethernet) RX packets 24311 bytes 25353921 (24.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 14440 bytes 2519051 (2.4 MiB)

I think it should also show the http://127.0.0.1:8080 and http://192.168.155.171:8080. Though I can just access them (by 192.168.155.171, not lomirus-manjaro), the URLs didn't show.

Other information:

  • Node: 18.3.0
  • npm: 8.5.5
  • OS: Manjaro Linux x86_64

— Reply to this email directly, view it on GitHub https://github.com/lwsjs/local-web-server/issues/174, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJQV3AOSAONCWWAX54ICSTVQP7DXANCNFSM5ZTD4UTA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lomirus commented 2 years ago

I am using 5.1.1. I will update to 5.2.1 to check if it can reproduce.

lomirus commented 2 years ago

Thanks, fixed