Advertisement
ASP_Volume2 Internet/ HTML #30991

Real IP Finder

When you use winsock to find your ip address, it will return you the ip of your internal network (if you have one). So this simple code is useful to find your real ip (the ip you use when connected to the internet).

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
Private Sub Form_Load()
  Winsock.Connect "www.microsoft.com", 80
End Sub
Private Sub Winsock_Connect()
  MsgBox "Your Real IP is: " + Winsock.LocalIP, vbOKOnly, "Real IP"
  Winsock.Close
End Sub
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine