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

default host for windows breaks #35

Open
mixmix opened this issue Jan 24, 2019 · 5 comments
Open

default host for windows breaks #35

mixmix opened this issue Jan 24, 2019 · 5 comments

Comments

@mixmix
Copy link
Member

mixmix commented Jan 24, 2019

The default host for incoming connections is ::

On Windows 10 this leads to an error when trying to stat patchbay:
Error: connect EADDNOTAVAIL :::8008

Changing the host to '127.0.0.1' works.

Should ssb-config know about this and choose default/ fallback host based on OS ?

@arj03
Copy link
Member

arj03 commented Jan 24, 2019

@mixmix I ran into a related issue yesterday when I upgraded my pub to ssb-server 14. On the server I have tor configured to relay external onions connection on port 8008 to 127.0.0.1. The 127.0.0.1 part was from the default tor config. And this doesn't work with an ipv6 address for host that ssb-config now picks by default.

@christianbundy
Copy link
Contributor

@mixmix

Personally, I'd love to see this supported in ssb-config so we don't have to hack it into each client.

@arj03
Copy link
Member

arj03 commented Jan 24, 2019

I'll have a further look at this tonight

@arj03
Copy link
Member

arj03 commented Jan 24, 2019

Log of my debugging session:

Setting incoming.net[0].host to :: actually works best on my pub in that it works with both tor and ssb-viewer.

This is output of console.log(nonPrivate):

{ [Function]
  private:
   { [Function] v4: '10.8.66.21', v6: 'fe80::dc2b:48ff:fe13:900a' },
  v4: undefined,
  v6: '2001:bc8:4700:2300::e:c15',
  all:
   { public: { v4: undefined, v6: '2001:bc8:4700:2300::e:c15' },
     private: { v4: '10.8.66.21', v6: 'fe80::dc2b:48ff:fe13:900a' } } }

I wonder why it picks the ipv6 addr when host is not defined, but incoming is. Like this one I had before:

{ "port": 8008, "scope": "public", "transform": "shs", "external": ["between-two-worlds.dk"] }

Also what is it? This appears to be multiserver-scopes. Actually this line. In a way it makes sense that it will return my public ipv6 when I configured it to public scope.

@mixmix as for your specific case with listening to the unspecified IPv6 address (::), this link seems to suggest that Windows behaves the same way as unix (linux & mac) in that it also listens on 0.0.0.0 (ipv4 equivalent).

@mixmix
Copy link
Member Author

mixmix commented Jan 26, 2019 via email

@christianbundy christianbundy removed their assignment Jan 31, 2021
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

No branches or pull requests

3 participants