You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for /f "tokens=*" %%A in ('curl -s ifconfig.co') do set PUBLIC_IP=%%A
:: Get the local IP address
for /f "tokens=2 delims=[]" %%A in ('ping -4 -n 1 %COMPUTERNAME% ^| findstr /r /c:"\[[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\]"') do set LOCAL_IP=%%A
:: Print the public and local IP addresses
echo Minecraft server is running at public IP: %PUBLIC_IP%
echo Minecraft server is running at local IP: %LOCAL_IP%