salix/win/redirect.ps1

6 lines
299 B
PowerShell
Raw Permalink Normal View History

2024-04-03 07:30:18 +00:00
# Redireccionar ports
$wslip = ((wsl hostname -I) -split " ")[0]
netsh interface portproxy set v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=$wslip
netsh interface portproxy set v4tov4 listenport=5000 listenaddress=0.0.0.0 connectport=5000 connectaddress=$wslip