Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6334791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:43:37+00:00 2026-05-24T18:43:37+00:00

Public Function GetIPInfo(ByVal IPNumb As String, ByVal GetInfo As String) As String Dim i1,

  • 0
Public Function GetIPInfo(ByVal IPNumb As String, ByVal GetInfo As String) As String
    Dim i1, i2 As Integer
    Dim s1, s2, s3 As String
    Dim IPCheckWebsite As String
    Dim WC As System.Net.WebClient = New System.Net.WebClient()
    IPCheckWebsite = WC.DownloadString("http://whatismyipaddress.com/ip/" & IPNumb)
    For i1 = 1 To Len(IPCheckWebsite)
        s1 = Mid(IPCheckWebsite, 1, i1)
        If InStr(s1, GetInfo) > 0 Then
            s2 = Mid(IPCheckWebsite, i1 + 10)
            For i2 = 1 To Len(s2)
                s3 = Mid(s2, 1, i2)
                If InStr(s3, "<") > 0 Then
                    IPCheckWebsite = Mid(s3, 1, i2 - 1)
                    GoTo Done
                End If
            Next
        End If
    Next

Done:
Return IPCheckWebsite
End Function

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    ListBox1.Items.Clear()
    ListBox1.Items.Add("IP: " & GetIPInfo(TextBox3.Text, "IP:"))
    ListBox1.Items.Add("Hostname: " & GetIPInfo(TextBox3.Text, "Hostname:"))
    ListBox1.Items.Add("ISP: " & GetIPInfo(TextBox3.Text, "ISP:"))
    ListBox1.Items.Add("Organization: " & GetIPInfo(TextBox3.Text, "Organization:"))
    ListBox1.Items.Add("Services: " & GetIPInfo(TextBox3.Text, "Services:"))
    ListBox1.Items.Add("Country: " & GetIPInfo(TextBox3.Text, "Country:"))
    ListBox1.Items.Add("State/Region: " & GetIPInfo(TextBox3.Text, "State/Region:"))
    ListBox1.Items.Add("City: " & GetIPInfo(TextBox3.Text, "City:"))
End Sub

It says the website server has a 503 Error, But the site is up and works fine. Am I Doing Something Wrong?

Dim WC As System.Net.WebClient = New System.Net.WebClient()
    IPCheckWebsite = WC.DownloadString("http://whatismyipaddress.com/ip/" & IPNumb)

specifically This code

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:43:38+00:00Added an answer on May 24, 2026 at 6:43 pm

    My guess is that whatismyipaddress.com probably has measures in place to try and block people from doing precisely what you are doing.

    They are returning a 503 response which means “service unavailable”.

    If you are sure that you should be able to scrape their site with a bot, you’ll need to contact the administrator of whatismyaddress.com for their help.

    Another issue with your code is that it appears you are fetching their page 8 times for one button click, which is probably not good etiquette (unless you know that WC.DownloadString is caching the response, I guess).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Public Function Cricket() As List(Of String) Dim list2 As New List(Of String)() With {
i have this controller function: Public Function Index(ByVal id As System.Nullable(Of Integer)) As ActionResult
My codes: Public Function HandleImageUpload(ByVal serverPath As String, ByVal iWidth As Integer, ByVal iHeight
Public Function CheckIfItemPresent(ByVal userID As String, ByVal itemID As String, ByVal itemPrice As Integer,
Public Function TitleCase(ByVal strIn As String) Dim result As String = Dim culture As
public function bmdToStr(bmd:BitmapData,width:int,height:int):String { var encoder:JPEGEncoder = new JPEGEncoder(); var encBytes:ByteArray = encoder.encode(bmd); return
Public Function Foo() as String() Dim bar As String = {bar1,bar2,bar3} Return bar End
given this function: Public Function Search(ByVal StartIndex As Integer, _ ByVal MaxResults As Integer,
Here is my function: Public Function ListPublishedArticles(ByVal startingDate As DateTime) As List(Of Article) Dim
Here's my code: Public Function selectReturnsByUserId( limit As Integer, userid As String ) As

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.