olric
olric copied to clipboard
only bind my wsl network
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?