Login        
 
   
Nederlands English
 






What's my IP Address

On this page you find a small prog to catch your IP address. The code in Visual Basic is also attached.

 
IFrame
 
Links
 
CodePrint
   1:  Partial Class _Default
   2:      Inherits System.Web.UI.Page
   3:   
   4:      Dim ip As String
   5:   
   6:      'IP adres achterhalen
   7:      Public Sub IpAddress()
   8:          Dim strIpAddress As String
   9:          strIpAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
  10:          If strIpAddress = "" Then
  11:              strIpAddress = Request.ServerVariables("REMOTE_ADDR")
  12:          End If
  13:          ip = strIpAddress
  14:      End Sub
  15:   
  16:      Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
  17:          IpAddress()
  18:          TextBox1.Text = ip
  19:      End Sub
  20:  End Class
  HTML 4.01 Code
  ASCII Code
 
 

Links
 

  © Sappy.nl by Frank van Rooijen
   
website statistics