Pinging using ASP.Net

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Pinging using ASP.Net

    Using ASP.Net I need to find out if a particular server is
    up and running. I know the IP Address and name of the
    server. Its something similar to ping command but I need
    to have it at the click of a button for some reason. All I
    need to know is if the server is running.

    Any help is greatly appreciated.

    Pepsi
    pepsi Guest

  2. Similar Questions and Discussions

    1. Contribute Constantly Pinging Server
      We have Contribute 3.14. We have about 100 users and we have found Contribute to sit and constantly ping/connect to the server creating large logs,...
  3. #2

    Default Re: Pinging using ASP.Net

    try this, shows you how to do it via sockets in a simple web service, from
    there its easy to wrap an asp.net page around it

    [url]http://www.411asp.net/home/tutorial/howto/networkf/pingfunc[/url]

    --
    Regards

    John Timney (Microsoft ASP.NET MVP)
    ----------------------------------------------
    <shameless_author_plug>
    Professional .NET for Java Developers with C#
    ISBN:1-861007-91-4
    Professional Windows Forms
    ISBN: 1861005547
    Professional JSP 2nd Edition
    ISBN: 1861004958
    Professional JSP
    ISBN: 1861003625
    Beginning JSP Web Development
    ISBN: 1861002092
    </shameless_author_plug>
    ----------------------------------------------

    "pepsi" <piya_m@hotmail.com> wrote in message
    news:012a01c34fb8$4236f2e0$a501280a@phx.gbl...
    > Using ASP.Net I need to find out if a particular server is
    > up and running. I know the IP Address and name of the
    > server. Its something similar to ping command but I need
    > to have it at the click of a button for some reason. All I
    > need to know is if the server is running.
    >
    > Any help is greatly appreciated.
    >
    > Pepsi

    John Timney \(Microsoft MVP\) Guest

  4. #3

    Default RE: Pinging using ASP.NET

    You can import System.Net and do something like this in
    the click event of your button:

    Dim server As String = "207.46.134.222"

    Try
    Dim hostInfo As IPHostEntry = Dns.GetHostByAddress(server)
    Catch ex As Exception
    Response.Write("OFF, host turned off")
    End Try



    >-----Original Message-----
    >Using ASP.Net I need to find out if a particular server
    is
    >up and running. I know the IP Address and name of the
    >server. Its something similar to ping command but I need
    >to have it at the click of a button for some reason. All
    I
    >need to know is if the server is running.
    >
    >Any help is greatly appreciated.
    >
    >Pepsi
    >.
    >
    Scott McKinney Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139