[GH-ISSUE #74] cannot bind address 0.0.0.0 #32

Closed
opened 2026-04-08 16:49:55 +03:00 by zhus · 5 comments
Owner

Originally created by @changcui on GitHub (Jun 28, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/74

I cannot bind address 0.0.0.0, as a result, i cannot use the public IP to access the file server.
I found out the source code of args.rs just filter out the address, why?

Originally created by @changcui on GitHub (Jun 28, 2022). Original GitHub issue: https://github.com/sigoden/dufs/issues/74 I cannot bind address 0.0.0.0, as a result, i cannot use the public IP to access the file server. I found out the source code of args.rs just filter out the address, why?
zhus closed this issue 2026-04-08 16:49:55 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 28, 2022):

the default is bind to 0.0.0.0

cloud you post the log?

<!-- gh-comment-id:1168771597 --> @sigoden commented on GitHub (Jun 28, 2022): the default is bind to 0.0.0.0 cloud you post the log?
Author
Owner

@changcui commented on GitHub (Jun 28, 2022):

Listening on:
https://127.0.0.1:38964/
https://172.17.0.1:38964/
https://172.18.0.1:38964/
https://172.19.0.3:38964/
https://[::1]:38964/
It listens on all inet address, not https://0.0.0.0:38964/

<!-- gh-comment-id:1168779585 --> @changcui commented on GitHub (Jun 28, 2022): Listening on: https://127.0.0.1:38964/ https://172.17.0.1:38964/ https://172.18.0.1:38964/ https://172.19.0.3:38964/ https://[::1]:38964/ It listens on all inet address, not https://0.0.0.0:38964/
Author
Owner

@changcui commented on GitHub (Jun 28, 2022):

If I use python http.server, it could listen on 0.0.0.0:port
Log: Serving HTTP on 0.0.0.0 port 38964 (http://0.0.0.0:38964/)
How can I do this?

<!-- gh-comment-id:1168782775 --> @changcui commented on GitHub (Jun 28, 2022): If I use python http.server, it could listen on 0.0.0.0:port Log: Serving HTTP on 0.0.0.0 port 38964 (http://0.0.0.0:38964/) How can I do this?
Author
Owner

@sigoden commented on GitHub (Jun 28, 2022):

0.0.0.0 is used on servers to designate a service may bind to all network interfaces.

it doesn't exist physically. so dufs list all bind addresses except 0.0.0.0

you still use the public IP.

<!-- gh-comment-id:1168794197 --> @sigoden commented on GitHub (Jun 28, 2022): `0.0.0.0` is used on servers to designate a service may bind to all network interfaces. it doesn't exist physically. so dufs list all bind addresses except 0.0.0.0 you still use the public IP.
Author
Owner

@changcui commented on GitHub (Jun 28, 2022):

Thanks very much, it's okay!

<!-- gh-comment-id:1168803969 --> @changcui commented on GitHub (Jun 28, 2022): Thanks very much, it's okay!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#32