title: Can I set a static ip address for WSL 2?
body: <p>I'm doing some Ruby on Rails development on a WSL 2. The rails app connects to a MySQL server running on my Windows host. When I used WSL 1 it as easy to set the host to 127.0.0.1 but on WSL 2 I have to use the nameserver written in <code>/etc/resolv.conf</code></p>
  <p>But I found out that IP address written in resolv.conf changes on reboots.</p>
  <p>Is there a way to set a static IP address for WSL 2 ?</p>