'How to go from geth in WSL to vEthernet adaptor to Router

On my windows 10 pro laptop I am running geth in WSL. The problem is I can not seem to get reach my wireless router. I am getting a status of not connected to my router. So the web3J calls returns a can not connect. I setup my geth: geth --http.port "8545" --http.addr "192.168.1.15" --datadir test-chain-dir --http --dev

I setup eth0 to match my address in my ipv4 settings config in my vethernet adaptor ifconfig eth0 192.168.1.15 and the mask ifconfig eth0 netmask 255.255.255.0

I also add a route ip route add default via 192.168.1.15 So what am I doing wrong? I also tried adding on the windows side the command to setup portproxy.

Is there some definitive instructions somewhere about setting up geth to work within WSL and able to reach out to the router? I wrote some simple code using web3j running on a android phone that is connected on my local network.

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source