Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 00:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Pingabfrage | Whats the problem?

Discussion on Pingabfrage | Whats the problem? within the .NET Languages forum part of the Coders Den category.

Closed Thread
 
Old   #1


 
elite*gold: 32
Join Date: Feb 2010
Posts: 1,647
Received Thanks: 247
Pingabfrage | Whats the problem?

Hey,

kann mir einer sagen warum dies nicht klappt?

Code:
Private Sub Pingabfrage_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ONLINELabel.Hide()
        If My.Computer.Network.Ping("www.sinesstar.de") = True Then
            OFFLINELabel.Hide()
            ONLINELabel.Show()
        End If
    End Sub
Dort steht nun die ganze Zeit offline.
Doch sobald ich mal google "anfunke", dann geht es ...
Code:
Private Sub Pingabfrage_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ONLINELabel.Hide()
        If My.Computer.Network.Ping("www.google.de") = True Then
            OFFLINELabel.Hide()
            ONLINELabel.Show()
        End If
    End Sub
Weiß einer woran das liegt?

Webspace ist von Nitrado

MfG
Rev 9 is offline  
Old 08/16/2014, 19:10   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
bist du schon diesen hinweisen aus dem msdn nachgegangen?
Quote:
Hinweise

Die Ping-Methode ist keine absolut sichere Methode zum Bestimmen der Verfügbarkeit eines Remotecomputers: Der Pinganschluss des Zielcomputers ist möglicherweise deaktiviert, und die Pinganforderung kann durch eine Firewall oder einen Router blockiert werden.

Der DNS der an die Ping-Methode übergebenen Adresse muss auflösbar sein, und der Adresse darf nicht "http://" vorangestellt sein.
tolio is offline  
Old 08/16/2014, 19:14   #3


 
elite*gold: 32
Join Date: Feb 2010
Posts: 1,647
Received Thanks: 247
Dankeschön.
Sorry, in der eile überlesen ;/
Rev 9 is offline  
Closed Thread


Similar Threads Similar Threads
Online- & Pingabfrage
12/21/2013 - .NET Languages - 5 Replies
Guten Tag, nach 45 Minuten voll mit Erfolgslosem probieren einen Online- & Pingabfrager zu machen brauch ich jetzt Hilfe. Also, ich wollte gerne das man in einem kleinen VB2010 Fenster sieht, ob der Server gerade Online/Offline ist und wie sein derzeitiger Ping ist. Ist auch relativ einfach, aber anscheind nur bei Homepages. Ich habe jetzt ein C&C Code benutzt, sämtliche Homepages eingetragen und es wurde mir immer korrekt angezeigt. Dann hab ich die IP vom Root benutzt, der in mehreren...
Whats the problem with CO and olly?
04/12/2013 - CO2 Programming - 5 Replies
Been trying to attach for over 30 minutes.What is the protection they using or whats the work around?
Whats dat =o?
12/14/2012 - S4 League - 3 Replies
Its gives me error Failed to connect the server: W L HGWC.Help meh :>
whats going on with the address problem on kts registration?
10/14/2010 - Rappelz - 3 Replies
hello elitepvp, I am very close to making a kts account but i have some address problem with registration. i saw on some forums here that there were others with the same problem. can anyone refer me to a official kts registration guide website so i can figure this out thnks elitepvp :)
Whats the problem?
07/29/2008 - Guild Wars - 2 Replies
Also, ich weis nicht was hier jetzt schief geht. Ich will ein Script schreiben, aber leider geht doch irgendwas schief. Am anfang habe ich es mit pixelchecksum ausprobiert, was ganz daneben ging. Dann mit pixelgetcollor, war auch nicht besser. Dann bin ich auf die Global funktion gestoßen und da kam das bei raus. Bitte sagt mir wo das Problem liegt, denn er arbeitet alles einfach nur runter.:confused::mad:



All times are GMT +1. The time now is 00:51.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.