Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How do I ping another computer?

How do I ping another computer?

Scheduled Pinned Locked Moved Visual Basic
question
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rossx
    wrote on last edited by
    #1

    How do I ping another computer? Ross

    L 1 Reply Last reply
    0
    • R Rossx

      How do I ping another computer? Ross

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      There is a nice little Ping class for that...

      Luc Pattyn [Forum Guidelines] [My Articles]


      this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


      O 1 Reply Last reply
      0
      • L Luc Pattyn

        There is a nice little Ping class for that...

        Luc Pattyn [Forum Guidelines] [My Articles]


        this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


        O Offline
        O Offline
        originSH
        wrote on last edited by
        #3

        There is is 2.0 but not in 1.1 iirc.

        L 1 Reply Last reply
        0
        • O originSH

          There is is 2.0 but not in 1.1 iirc.

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          correct. Long time ago I did if for 1.0 with some 100 lines of code, using Socket.SendTo and Socket.ReceiveFrom in a separate thread. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


          D 1 Reply Last reply
          0
          • L Luc Pattyn

            correct. Long time ago I did if for 1.0 with some 100 lines of code, using Socket.SendTo and Socket.ReceiveFrom in a separate thread. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


            D Offline
            D Offline
            Drew
            wrote on last edited by
            #5

            System.Net.NetworkInformation.Ping or My.Computer.Network.Ping() The second one only returns a boolean value whether or not the ping succeeded. You'll have to tweak it a bit to make it work. I made an app that does the same thing "ping Google.com" does in command prompt. I can get you the basics if you wish.

            L 1 Reply Last reply
            0
            • D Drew

              System.Net.NetworkInformation.Ping or My.Computer.Network.Ping() The second one only returns a boolean value whether or not the ping succeeded. You'll have to tweak it a bit to make it work. I made an app that does the same thing "ping Google.com" does in command prompt. I can get you the basics if you wish.

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              `Drew wrote:

              System.Net.NetworkInformation.Ping

              well that's 2.0 also

              `Drew wrote:

              My.Computer.Network.Ping()

              I do almost everything using C#, and it does not have that nice My thingy. :)

              Luc Pattyn [Forum Guidelines] [My Articles]


              this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


              D 1 Reply Last reply
              0
              • L Luc Pattyn

                `Drew wrote:

                System.Net.NetworkInformation.Ping

                well that's 2.0 also

                `Drew wrote:

                My.Computer.Network.Ping()

                I do almost everything using C#, and it does not have that nice My thingy. :)

                Luc Pattyn [Forum Guidelines] [My Articles]


                this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


                D Offline
                D Offline
                Drew
                wrote on last edited by
                #7

                Luc Pattyn wrote:

                `Drew wrote: System.Net.NetworkInformation.Ping well that's 2.0 also

                Is that bad? I'm running 3.5 beta on my Vista machine.

                Luc Pattyn wrote:

                `Drew wrote: My.Computer.Network.Ping() I do almost everything using C#, and it does not have that nice My thingy.

                Hmm, I'm glad I'm stuck with VB.NET. What is the C# equal to My.settings?

                L 1 Reply Last reply
                0
                • D Drew

                  Luc Pattyn wrote:

                  `Drew wrote: System.Net.NetworkInformation.Ping well that's 2.0 also

                  Is that bad? I'm running 3.5 beta on my Vista machine.

                  Luc Pattyn wrote:

                  `Drew wrote: My.Computer.Network.Ping() I do almost everything using C#, and it does not have that nice My thingy.

                  Hmm, I'm glad I'm stuck with VB.NET. What is the C# equal to My.settings?

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  `Drew wrote:

                  well that's 2.0 also Is that bad?

                  No, but my first answer was the Ping class, which got commented as being 2.0

                  `Drew wrote:

                  I'm glad I'm stuck with VB.NET. What is the C# equal to My.settings?

                  Most of the things VB collected under My are available in all CLR languages, but not through an equivalent for My. Total Physical Memory is one of those things only VB's My offers. If you need to know how to do settings in C# I suggest you read MSDN about that. :)

                  Luc Pattyn [Forum Guidelines] [My Articles]


                  this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups