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

Change default bind address to the unspecified address 0.0.0.0 #2

Open
wants to merge 1 commit into
base: hyperspace
Choose a base branch
from

Conversation

ameba23
Copy link

@ameba23 ameba23 commented Aug 4, 2022

The default bind address is currently 127.0.0.1, which means we always use the loopback device and cannot connect to a remote host unless we pass in a socket / bind address in the config.

For me, this means the hyperswarm-rs hyperchat example will not work when the given bootstrap node is a remote host, even if we pass in a non-loopback ip using the --bind option, as this option is used only to configure tcp / utp connections to peers, not where to bind the dht node.

I think the default bind address should be the unspecified address (0.0.0.0) as this gives most flexibility - we can still use localhost for testing and also connect to remote hosts.

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

Successfully merging this pull request may close these issues.

1 participant