Advertisement
4_2005-2006 Internet/ HTML #154600

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

Résumé par IA: 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.

Code source
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
Commentaires originaux (3)
Récupéré via Wayback Machine