Skip to content

Change default bind address to the unspecified address 0.0.0.0 - #2

Open
ameba23 wants to merge 1 commit into
datrs:hyperspacefrom
ameba23:hyperspace
Open

Change default bind address to the unspecified address 0.0.0.0#2
ameba23 wants to merge 1 commit into
datrs:hyperspacefrom
ameba23:hyperspace

Conversation

@ameba23

@ameba23 ameba23 commented Aug 4, 2022

Copy link
Copy Markdown

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