rejetto / hfs

HFS is a web file server to run on your computer. Share folders or even a single file thanks to the virtual file system.
GNU General Public License v3.0
2.12k stars 206 forks source link

Multiple lan interface, poor detection of the main (192.168.1.10) #434

Closed accnetdev closed 8 months ago

accnetdev commented 8 months ago

Happy new year Massimo !

Édition Windows 11 Professionnel - Version 23H2 Installé le 18/‎11/‎2022 Build du système d’exploitation 22631.2861 Expérience Windows Feature Experience Pack 1000.22681.1000.0 HFS 0.50.6 MS Edge, Mozilla Firefox, Google Chrome I use virtual lan (ie: two or more ip on the same nic interface) in that case the Intel(R) Ethernet Controller (3) I225-V has its main private ip to 192.168.1.10 to connect the main local lan (behind a Freebox Delta) and a second private ip 192.160.0.10 to connect on a virtual lan to get some ressources.

When I start HFS3 I get my browser on : http://localhost:8080/~/admin/

Black screen, so I have to replace manually localhost by my private IP which is 192.168.1.10 to :

http://192.168.1.10:8080/~/admin/

Login screen

20240107_1138_RYZ9MINI_eproust_scsht_001

HFS ~ HTTP File Server - Copyright 2021-2023, Massimo Melina a@rejetto.com License https://www.gnu.org/licenses/gpl-3.0.txt started 2024-1-7 10:41:33 version 0.50.6 build 2024-01-02T10:56:57.046Z cwd C:#\hfsnew node v18.5.0 platform win32 pid 6616 config config.yaml HINT: type "help" for help http serving on any network : 8080 serving on http://169.254.83.107:8080 serving on http://192.168.0.10:8080 serving on http://192.168.56.1:8080 serving on http://192.168.112.1:8080 serving on http://192.168.80.1:8080 loading plugin antibrute

ipconfig /all

Configuration IP de Windows

Nom de l’hôte . . . . . . . . . . : ryz9mini Suffixe DNS principal . . . . . . : Type de noeud. . . . . . . . . . : Hybride Routage IP activé . . . . . . . . : Non Proxy WINS activé . . . . . . . . : Non

Carte Ethernet Ethernet 3 :

Statut du média. . . . . . . . . . . . : Média déconnecté Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : Sophos TAP Adapter Adresse physique . . . . . . . . . . . : 00-FF-21-F7-89-7E DHCP activé. . . . . . . . . . . . . . : Oui Configuration automatique activée. . . : Oui

Carte inconnue Tailscale :

Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : Tailscale Tunnel Adresse physique . . . . . . . . . . . : DHCP activé. . . . . . . . . . . . . . : Non Configuration automatique activée. . . : Oui Adresse IPv6 de liaison locale. . . . .: fe80::d8ff:5060:f230:9168%62(préféré) Adresse d’autoconfiguration IPv4 . . . : 169.254.83.107(préféré) Masque de sous-réseau. . . . . . . . . : 255.255.0.0 Passerelle par défaut. . . . . . . . . : NetBIOS sur TCPIP. . . . . . . . . . . : Désactivé

Carte Ethernet Ethernet :

Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : Intel(R) Ethernet Controller (3) I225-V Adresse physique . . . . . . . . . . . : 70-70-FC-01-36-CA DHCP activé. . . . . . . . . . . . . . : Non Configuration automatique activée. . . : Oui Adresse IPv6. . . . . . . . . . . . . .: 2a01:e0a:822:2370:16bd:e1d3:af02:6590(préféré) Adresse IPv6 temporaire . . . . . . . .: 2a01:e0a:822:2370:c99e:fe2d:ce26:2453(préféré) Adresse IPv6 de liaison locale. . . . .: fe80::592f:5ff3:5c74:bb32%19(préféré) Adresse IPv4. . . . . . . . . . . . . .: 192.168.0.10(préféré) Masque de sous-réseau. . . . . . . . . : 255.255.255.0 Adresse IPv4. . . . . . . . . . . . . .: 192.168.1.10(préféré) Masque de sous-réseau. . . . . . . . . : 255.255.255.0 Passerelle par défaut. . . . . . . . . : fe80::de00:b0ff:fe3b:5de0%19 192.168.1.254 IAID DHCPv6 . . . . . . . . . . . : 141586684 DUID de client DHCPv6. . . . . . . . : 00-01-00-01-2B-06-26-29-70-70-FC-01-36-CA Serveurs DNS. . . . . . . . . . . . . : 9.9.9.10 149.112.112.10 192.168.1.254 NetBIOS sur Tcpip. . . . . . . . . . . : Activé

Carte Ethernet Ethernet 4 :

Statut du média. . . . . . . . . . . . : Média déconnecté Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : TAP-NordVPN Windows Adapter V9 Adresse physique . . . . . . . . . . . : 00-FF-05-82-C1-47 DHCP activé. . . . . . . . . . . . . . : Oui Configuration automatique activée. . . : Oui

Carte Ethernet Ethernet 2 :

Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter Adresse physique . . . . . . . . . . . : 0A-00-27-00-00-15 DHCP activé. . . . . . . . . . . . . . : Non Configuration automatique activée. . . : Oui Adresse IPv6 de liaison locale. . . . .: fe80::59d4:e6d2:f6cd:6ac8%21(préféré) Adresse IPv4. . . . . . . . . . . . . .: 192.168.56.1(préféré) Masque de sous-réseau. . . . . . . . . : 255.255.255.0 Passerelle par défaut. . . . . . . . . : IAID DHCPv6 . . . . . . . . . . . : 1309278247 DUID de client DHCPv6. . . . . . . . : 00-01-00-01-2B-06-26-29-70-70-FC-01-36-CA NetBIOS sur Tcpip. . . . . . . . . . . : Activé

Carte réseau sans fil Wi-Fi :

Statut du média. . . . . . . . . . . . : Média déconnecté Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : RZ608 Wi-Fi 6E 80MHz Adresse physique . . . . . . . . . . . : 10-6F-D9-75-04-A9 DHCP activé. . . . . . . . . . . . . . : Oui Configuration automatique activée. . . : Oui

Carte réseau sans fil Connexion au réseau local* 1 :

Statut du média. . . . . . . . . . . . : Média déconnecté Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter Adresse physique . . . . . . . . . . . : 12-6F-D9-75-24-89 DHCP activé. . . . . . . . . . . . . . : Oui Configuration automatique activée. . . : Oui

Carte réseau sans fil Connexion au réseau local* 2 :

Statut du média. . . . . . . . . . . . : Média déconnecté Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2 Adresse physique . . . . . . . . . . . : 12-6F-D9-75-34-99 DHCP activé. . . . . . . . . . . . . . : Non Configuration automatique activée. . . : Oui

Carte Ethernet VMware Network Adapter VMnet1 :

Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1 Adresse physique . . . . . . . . . . . : 00-50-56-C0-00-01 DHCP activé. . . . . . . . . . . . . . : Oui Configuration automatique activée. . . : Oui Adresse IPv6 de liaison locale. . . . .: fe80::4acc:90e:a56a:96c4%5(préféré) Adresse IPv4. . . . . . . . . . . . . .: 192.168.112.1(préféré) Masque de sous-réseau. . . . . . . . . : 255.255.255.0 Bail obtenu. . . . . . . . . . . . . . : dimanche 7 janvier 2024 10:38:08 Bail expirant. . . . . . . . . . . . . : dimanche 7 janvier 2024 11:52:53 Passerelle par défaut. . . . . . . . . : Serveur DHCP . . . . . . . . . . . . . : 192.168.112.254 IAID DHCPv6 . . . . . . . . . . . : 1509970006 DUID de client DHCPv6. . . . . . . . : 00-01-00-01-2B-06-26-29-70-70-FC-01-36-CA NetBIOS sur Tcpip. . . . . . . . . . . : Activé

Carte Ethernet VMware Network Adapter VMnet8 :

Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8 Adresse physique . . . . . . . . . . . : 00-50-56-C0-00-08 DHCP activé. . . . . . . . . . . . . . : Oui Configuration automatique activée. . . : Oui Adresse IPv6 de liaison locale. . . . .: fe80::2c69:c705:57a6:5f33%7(préféré) Adresse IPv4. . . . . . . . . . . . . .: 192.168.80.1(préféré) Masque de sous-réseau. . . . . . . . . : 255.255.255.0 Bail obtenu. . . . . . . . . . . . . . : dimanche 7 janvier 2024 10:38:08 Bail expirant. . . . . . . . . . . . . : dimanche 7 janvier 2024 11:52:53 Passerelle par défaut. . . . . . . . . : Serveur DHCP . . . . . . . . . . . . . : 192.168.80.254 IAID DHCPv6 . . . . . . . . . . . : 1778405462 DUID de client DHCPv6. . . . . . . . : 00-01-00-01-2B-06-26-29-70-70-FC-01-36-CA Serveur WINS principal . . . . . . . . : 192.168.80.2 NetBIOS sur Tcpip. . . . . . . . . . . : Activé

Carte Ethernet Connexion réseau Bluetooth :

Statut du média. . . . . . . . . . . . : Média déconnecté Suffixe DNS propre à la connexion. . . : Description. . . . . . . . . . . . . . : Bluetooth Device (Personal Area Network) Adresse physique . . . . . . . . . . . : 10-6F-D9-75-04-AA DHCP activé. . . . . . . . . . . . . . : Oui Configuration automatique activée. . . : Oui

rejetto commented 8 months ago

happy new year to you too! so, your problem is that http://localhost:8080/~/admin/ is giving you a blank page, right? what do you see at http://localhost:8080/ ?

accnetdev commented 8 months ago

This: 20240107_1217_RYZ9MINI_eproust_scsht_001

rejetto commented 8 months ago

ok, now go back to the blank page, press F12, and let's see the content of the Console tab

accnetdev commented 8 months ago

No longer Black Screen?! Admin screen is OK now in Edge or Firefox.

My remaining question is why there is no entry (displayed by HFS3): serving on http://192.168.1.10:8080 as it is my main interface?

20240107_1804_RYZ9MINI_eproust_scsht_001

HFS ~ HTTP File Server - Copyright 2021-2023, Massimo Melina a@rejetto.com License https://www.gnu.org/licenses/gpl-3.0.txt started 2024-1-7 17:58:30 version 0.50.6 build 2024-01-02T10:56:57.046Z cwd C:#\hfsnew node v18.5.0 platform win32 pid 5172 config config.yaml HINT: type "help" for help http serving on any network : 8080 serving on http://82.65.59.248:8080 serving on http://169.254.83.107:8080 serving on http://192.168.0.10:8080 serving on http://192.168.56.1:8080 serving on http://192.168.112.1:8080 serving on http://192.168.80.1:8080 loading plugin antibrute

rejetto commented 8 months ago

at the moment HFS is considering only 1 ip for interface, i just assumed it was ok. I'll reconsider this for next release.

accnetdev commented 8 months ago

OK. Some other applications don't detect my main interface 192.168.1.10 and are using another one (linked to Virtualbox or VMWare) as main interface. I don't understand why. Is it related to Windows virtual interfaces on the same Windows interface or to the Virtualization softwares... I will try to search explanations. Thanks for your time.

rejetto commented 8 months ago

maybe they made my same mistake, to not consider multiple ips on the same interface

accnetdev commented 8 months ago

image

20240107_1824_RYZ9MINI_eproust_scsht_001

I keep this topic opened because I need to test again to reproduce the blank screen at each test. It is not the case at the moment...

rejetto commented 8 months ago

should be fixed by this https://github.com/rejetto/hfs/releases/tag/v0.51.0-beta9

rejetto commented 8 months ago

please give a feedback on this when possible

accnetdev commented 8 months ago

grazie mille !

20240108_1544_RYZ9MINI_eproust_scsht_001

20240108_1541_RYZ9MINI_eproust_scsht_001

20240108_1543_RYZ9MINI_eproust_scsht_001

rejetto commented 8 months ago

thank you very much! So, i'm closing this issue. On an unrelated topic, i see those "operation timeout" in your "internet" page. I'd like to work on that. If you agree, you could open another issue.

accnetdev commented 8 months ago

Ok I will create the topic soon, but I will be available to help only after a small van trip starting tomorrow for this week.

It will be a pleasure to contribute to improve hfs.

Cheers

Le lun. 8 janv. 2024, 16:44, Massimo Melina @.***> a écrit :

thank you very much! So, i'm closing this issue. On an unrelated topic, i see those "operation timeout" in your "internet" page. I'd like to work on that. If you agree, you could open another issue.

— Reply to this email directly, view it on GitHub https://github.com/rejetto/hfs/issues/434#issuecomment-1881279414, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHU3F3PVOOIYVOLDXV6RZU3YNQH5JAVCNFSM6AAAAABBQHVEYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGI3TSNBRGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

rejetto commented 8 months ago

à biento^t