Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

code to make a server status checker

Upon pressing a button in VBNET I want it to report the status to the server either returning "online" or "offline" after checking the status. Does anyone have a clue how I could code this or have the code for this?
you can easily do with with webrequests with sites like downorjustme, or you can ping it.
(Jun 29, 2012 12:02 AM)๖ۣۜMephobia Wrote:  you can easily do with with webrequests with sites like downorjustme, or you can ping it.
Yes, but do you have the code to do such? I would like the users to be able to check the status from within the program.
Code
Private Function Status(ByVal site As String)
  If New System.Net.WebClient().DownloadString(String.Format("http://www.downforeveryoneorjustme.com/{0}", site).Contains("It's just")) Then Return True Else Return False
    End Function
Thanks guys, much love. Helped me alot! Working on my first project.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by SIM-4173254Sep 18, 2020 09:18 AM 5 144 Sep 18, 2020 09:18 AM
Last Post: SIM-4173254
[C#] by DotexeAug 5, 2017 04:23 PM 0 154 Aug 5, 2017 04:23 PM
Last Post: Dotexe
[.NET] by Egregious Jr.Nov 8, 2016 02:03 PM 15 296 Nov 8, 2016 02:03 PM
Last Post: Egregious Jr.