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

only bind my wsl network #129

Open
LawyZheng opened this issue Nov 24, 2021 · 0 comments
Open

only bind my wsl network #129

LawyZheng opened this issue Nov 24, 2021 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@LawyZheng
Copy link

Hi, Thanks for the contributions.

I just follow the Sample Code to start olric by the embedded way,

However, I find it listens to the 3320 port, only binding to my WSL network address, while not binding to my LAN.

Here is my ipconfig. Sorry for the Chinese. I assumed you could roughly understand what it means.

以太网适配器 以太网:

   连接特定的 DNS 后缀 . . . . . . . :
   本地链接 IPv6 地址. . . . . . . . : fe80::992a:abc6:2bb6:7f30%5
   IPv4 地址 . . . . . . . . . . . . : 192.168.0.231
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . : 192.168.0.1

以太网适配器 vEthernet (WSL):

   连接特定的 DNS 后缀 . . . . . . . :
   本地链接 IPv6 地址. . . . . . . . : fe80::e5b2:fd8f:7983:f9f6%28
   IPv4 地址 . . . . . . . . . . . . : 172.31.192.1
   子网掩码  . . . . . . . . . . . . : 255.255.240.0

And this is the olric log.

2021/11/24 09:57:20 [INFO] Storage engine has been loaded: kvstore => service.go:129
2021/11/24 09:57:20 [INFO] Join completed. Synced with 0 initial nodes => discovery.go:59
2021/11/24 09:57:20 [INFO] Routing table has been pushed by 172.31.192.1:3320 => operations.go:87
2021/11/24 09:57:20 [INFO] The cluster coordinator has been bootstrapped => discovery.go:42
2021/11/24 09:57:20 [INFO] Memberlist bindAddr: 172.31.192.1, bindPort: 3322 => routingtable.go:399
2021/11/24 09:57:20 [INFO] Cluster coordinator: 172.31.192.1:3320 => routingtable.go:400
2021/11/24 09:57:20 [INFO] Node name in the cluster: 172.31.192.1:3320 => olric.go:390
2021/11/24 09:57:20 [INFO] Olric bindAddr: 172.31.192.1, bindPort: 3320 => olric.go:396
2021/11/24 09:57:20 [INFO] Replication count is 1 => olric.go:398
2021/11/24 09:57:20 [INFO] Olric is ready to accept connections

My question is:
How can I bind it to all networks?

BTW, if I use the embedded way to start my application on different machines, can I use these embedded olric services as a cluster, sharing the same memory?

@buraksezer buraksezer self-assigned this Nov 24, 2021
@buraksezer buraksezer added the question Further information is requested label Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants