Results 1 to 8 of 8

Thread: Network Connectivity

  1. #1

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,754

    Network Connectivity

    As you may or may not know I think pinging "something" to determine whether or not to do "something" is fundamentally flawed logic.

    An example would be ping a mail server, if the ping is good then send the mail. At best it is naive in it's assumption. If you want to discuss it or have an example of when it is better, I'll be glad to.

    So yesterday I was involved in another debate and this morning I got up and put together some code that addresses this issue.

    If you want to try the code out it can be found by clicking the Ban Ping-Then-Do link in my signature.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  2. #2

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,754

    Re: Network Connectivity

    Last edited by dbasnett; Mar 27th, 2010 at 10:49 AM.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  3. #3
    New Member
    Join Date
    Mar 2010
    Location
    Woodbridge, VA
    Posts
    9

    Re: Network Connectivity

    I'm a new VB.net "programmer" and am trying to develop a small program to determine if a computer is "up" on my home network before I try to backup files to the other computer. Can you give me a starting point or any hints as to where to look for code, functions or routines that would help do this.

    Using VB 2010 (RC). Network has 4 Windows 7 computers.

    Thanks.

    Dave

  4. #4

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,754

    Re: Network Connectivity

    Quote Originally Posted by Dave48 View Post
    I'm a new VB.net "programmer" and am trying to develop a small program to determine if a computer is "up" on my home network before I try to backup files to the other computer. Can you give me a starting point or any hints as to where to look for code, functions or routines that would help do this.

    Using VB 2010 (RC). Network has 4 Windows 7 computers.

    Thanks.

    Dave
    Click on the Ban Ping-then-do in my signature. See post #5 there.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  5. #5
    New Member
    Join Date
    Mar 2010
    Location
    Woodbridge, VA
    Posts
    9

    Re: Network Connectivity

    Thanks. I just downloaded the code. I'll see if I can figure it out from there.

    Dave

  6. #6

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,754

    Re: Network Connectivity

    I made changes / additions. See the Update at the bottom of the Ping-then-do link, post#1. One of the things I added was a very simple / basic monitor.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  7. #7
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Network Connectivity

    Hmm, any clue what this is doing? I'm not sure why I might need it. Pinging is useless because so many routers blackhole pings these days anyway.

    I just start a connection attempt and time it out if I have a concern that I won't reach the remote server. A non-blocking connection request is simple enough to do.

  8. #8

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,754

    Re: Network Connectivity

    Quote Originally Posted by dilettante View Post
    Hmm, any clue what this is doing? I'm not sure why I might need it. Pinging is useless because so many routers blackhole pings these days anyway.

    I just start a connection attempt and time it out if I have a concern that I won't reach the remote server. A non-blocking connection request is simple enough to do.
    The code is for that group of people that believe that they need to ping something to make sure it is alive, before they do what it was they wanted to do.

    Your approach is the correct one. Do what ever it is you are doing, and if there is a problem, catch the problem.

    The code is also good for simple monitoring of devices on your network.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Tags for this Thread

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