Skip to content

Instantly share code, notes, and snippets.

View danielkv's full-sized avatar
🎯
Focusing

Daniel K. Guolo danielkv

🎯
Focusing
View GitHub Profile
@danielkv
danielkv / unlock_expo_ports.ps1
Created November 29, 2022 22:42 — forked from kendallroth/forward_wsl2_ports.ps1
Unlock Expo ports for WSL2 development
# Find WSL2 IP address
$wsl_ip = $(wsl hostname -I).Trim();
$windows_ip = '0.0.0.0';
if ( -Not $wsl_ip ) {
Write-Output "IP address for WSL 2 cannot be found";
exit;
}
Write-Output $wsl_ip