Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local network IP not returned #1153

Open
rgaudin opened this issue Oct 15, 2024 · 1 comment
Open

Local network IP not returned #1153

rgaudin opened this issue Oct 15, 2024 · 1 comment

Comments

@rgaudin
Copy link
Member

rgaudin commented Oct 15, 2024

I chose bug and question because this feature is not documented and I thus, as a user, have no idea what I should get.

I tried the Windows nightly of kiwix-serve including #1132 (seems to be the one, as the ipv4 issue is gone) and I got the following:

C:\Mac\Home\Downloads\kiwix-tools_win-x86_64-2024-10-14>kiwix-serve.exe -p 8001 c:\Users\reg\python-libzim\rlz\test.zim
The Kiwix server is running and can be accessed in the local network at:
  - http://127.0.0.1:8001/
  - http://[::1]:8001

Based on the sentence, I guess I should have received local addresses in addition to the loop back ones (the sentence is false otherwise).

The getBestPublicIps function name is not helping I guess and the docstring neither: what's best?

@rgaudin
Copy link
Member Author

rgaudin commented Oct 15, 2024

FYI, here's the IP stack as seen by a regular user

C:\Users\reg>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : REGA946
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : localdomain

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : localdomain
   Description . . . . . . . . . . . : Parallels VirtIO Ethernet Adapter
   Physical Address. . . . . . . . . : 00-1C-42-48-56-7E
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : fdb2:2c26:f4e4:0:94ca:7a72:9711:f4a7(Preferred)
   Temporary IPv6 Address. . . . . . : fdb2:2c26:f4e4:0:744d:d91f:36c6:f004(Preferred)
   Link-local IPv6 Address . . . . . : fe80::6981:4ed:200f:bc94(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.211.55.3(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Tuesday, October 15, 2024 10:16:51 AM
   Lease Expires . . . . . . . . . . : Tuesday, October 15, 2024 11:48:58 AM
   Default Gateway . . . . . . . . . : 10.211.55.1
   DHCP Server . . . . . . . . . . . : 10.211.55.1
   DHCPv6 IAID . . . . . . . . . . . : 100670530
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2B-08-1A-6B-00-1C-42-48-56-7E
   DNS Servers . . . . . . . . . . . : 10.211.55.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

C:\Users\reg>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants