Results 1 to 4 of 4

Thread: Obtaining Real IP Address

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2005
    Posts
    28

    Obtaining Real IP Address

    I need to find out how to obtaining a real IP address from our cable service, all web requests are intercepted by a web cache so it looks like your IP is different to what it actually is, I have been told that I can have a piece of code that sits on my server then send some sort of request to the server which will return me I true IP address and also the address of the cache

    Could someone tell me how to do this please

    Regards

    Chetty

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Jul 2005
    Posts
    28

    Re: Obtaining Real IP Address

    As in this link but this show the address of my local cache

    Thanks

  3. #3
    Lively Member
    Join Date
    May 2005
    Posts
    90

    Re: Obtaining Real IP Address

    Are you sure your browser wasn't just configured by their software to use a proxy, and that it's not actively filtering HTTP traffic to re-route it? (such a thing seems a bit processing-intensive).

    As for your question, if the modem is directly hooked up to your system, just start > run > "cmd" > "ipconfig"
    ^_^

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Obtaining Real IP Address

    This pops up a msgbox:
    VB Code:
    1. Option Explicit
    2. ' Add Microsoft Internet Transfer Control
    3.  
    4. Dim pubIPA As String, pos1 As Long, pos2 As Long
    5.      
    6. Private Sub Form_Load()
    7.     Text2.Text = Inet1.OpenURL("http://vbnet.mvps.org/resources/tools/getpublicip.shtml", icString)
    8.     pos1 = InStr(Text2.Text, "var ip =")
    9.     pos1 = InStr(pos1 + 1, Text2.Text, "'", vbTextCompare) + 1
    10.     pos2 = InStr(pos1 + 1, Text2.Text, "'", vbTextCompare)
    11.     pubIPA = Mid$(Text2.Text, pos1, pos2 - pos1)
    12.     MsgBox pubIPA, vbInformation
    13.     Unload Me
    14. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width