Access mcrouter and logger services from WSL #336
Labels
bug
Something isn't working
challenge
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Describe:
The
mcrouter
andlogger
are services that can run under Windows and Linux platform. If these services run under Windows, the applications running under WSL (Windows Subsystem for Linux) with Ubuntu distro cannot connect tomcrouter
andlogger
. The other way work fine, i.e. if services run in WSL, applications under Windows easily connectmcrouter
andlogger
.As a first step, changed the IP address of
mcrouter
andlogger
, replaced127.0.0.1
to172.23.96.1
(selected fromipconfig
). But it didn't help. As well tried to make changes in the firewall settings of Windows Defender. Not sure whether made in the right way, but it also didn't help.To Reproduce
mcrouter.exe
andlogger.exe
logobserver.exe
, type-r
to start log observer and time-i
to list connected instances. Result: it lists themcrouter.exe
;logobserver.out
, which theoretically should connect tologger.exe
running under Windows, type-r
to start observer, type-i
to list connected instances. Result: it displays message that no instance is connected.Expected behavior
The applications should connect to the
logger
andmcrouter
independent whether they run under Windows, WSL or Linux machine.Desktop:
cl
compiler), g++ or clang++ for LinuxAdditional context
I do believe it is not a software issue, rather than configuration or security settings. There is a known issue accessing Windows service from WSL, but I was not able to solve it easily.
To change the IP address of
mcrouter
, editrouter::*::address::tcpip = 127.0.0.1
in areg.init. The*
can be replaced by application name or leave*
if it reflects to all applications.To change the IP address of
logger
, editlogger::*::address::tcpip = 127.0.0.1
in areg.init. The*
can be replaced by application name or leave*
if it reflects to all applications.The text was updated successfully, but these errors were encountered: