<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>How about:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>netsh interface portproxy v4tov4 add ListenPort=3117 ListenAddress=0.0.0.0 ConnectPort=3117 ConnectAddress=$(wsl hostname -I).Trim()<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='mso-ligatures:none'>From:</span></b><span style='mso-ligatures:none'> NFBCS <nfbcs-bounces@nfbnet.org> <b>On Behalf Of </b>Lewis Wood via NFBCS<br><b>Sent:</b> Saturday, August 12, 2023 12:11 PM<br><b>To:</b> program-l@freelists.org; 'NFB in Computer Science Mailing List' <nfbcs@nfbnet.org><br><b>Cc:</b> Lewis Wood <lewislwood@gmail.com><br><b>Subject:</b> [NFBCS] defender firewall<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Well I reset the Firewall settings and this fixed it. <o:p></o:p></p><p class=MsoNormal>So now I can host express in windows on my desktop or laptop.<o:p></o:p></p><p class=MsoNormal>Now I am trying to enable it in WSL using the netsh command.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Netsh is persistence and will rerun on every reboot.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I got this off a video and had a sighted person verify it.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>netsh interface portproxy v4tov4 add ListenPort=3117 ListenAddress=0.0.0.0 ConnectPort=3117 ConnectAddress=${${wsl hostname -I}.Trim()}<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now my powershell complains that ${${wsl hostname -I}.Trim()};<o:p></o:p></p><p class=MsoNormal>Should use `{ instead. I could not get it work.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Tried looking it up, but apparently I am going to have to read the entire powershell scripting book.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Anyone out there familiar with Powershell scripting?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Wsl hostname -I returns the ip address of the default distro. I need to pass that value to connectaddress.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Lewis Wood<o:p></o:p></p><p class=MsoNormal><a href="mailto:lewislwood@gmail.com">lewislwood@gmail.com</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>