John Liu Blog

Every drop counts

Find out the actual public IP address

When in a corporate or home network, run the following powershell command to find out the actual public IP address your computer exposed to the Internet. Make sure all VPN are closed first. (Invoke-WebRequest -Uri "https://ipinfo.io/ip").Content Imports System.Net Module Module1 Sub Main() Dim client As New WebClient() Dim publicIp As String = client.DownloadString("https://api.ipify.org") Console.WriteLine($"Your public IP address is: {publicIp}") End Sub End Module Alternatively, you can simply browser to address https://ipinfo.

Some networking commands

Some basic networking commands for self reference: List the current route table: netstat -rn Add an ip range into route table. –p means this route will persist so it will not be lost after restart. route add 172.27.48.0 mask 255.255.240.0 172.27.48.1 -p Access to any ip address starting with 172, inside the mask of 255.0.0.0, via ip address 192.168.0.10 Route add 172.0.0.0 mask 255.0.0.0 192.168.0.10 metric 4 –p Remove from route table: