Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 13:21

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

Advertisement



[C#]Ping Problem

Discussion on [C#]Ping Problem within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 60
Join Date: Dec 2012
Posts: 1,359
Received Thanks: 36
[C#]Ping Problem

Guten Abend
Ich habe da mal eine frage und zwar
Ich möchte gerne eine Proxy checker schreibne und wollte es nicht über Httpwebrequest oder webproxy machen sondern per Ping

Jedoch kann ich nicht mit einem Port arbeiten

Code:
        public string proxyip(int index)
        {
            return Proxyview.Items[index].SubItems[0].Text.ToString() + ":" + Proxyview.Items[index].SubItems[1].Text.ToString();//
        }


public void Proxychecken(object Index)
        {
            while (isruning)
            {
                proyzahl++;
                if (proyzahl == Proxyview.Items.Count)
                {
                    isruning = false;
                    proyzahl = 1;
                    MessageBox.Show("Fetig");
                }
                string aIP = "";
                if (Proxyview.InvokeRequired)
                {
                    try
                    {
                        aIP = Proxyview.Invoke(new Proxydatenbekommen(proxyip), proyzahl).ToString();
                        Ping pingSender = new Ping();
                        PingOptions options = new PingOptions();
                        options.DontFragment = true;
                        string data = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
                        byte[] buffer = Encoding.ASCII.GetBytes(data);
                        int timeout = 120;
                        PingReply reply = pingSender.Send(aIP, timeout, buffer, options);
                        if (reply.Status == IPStatus.Success)
                        {
                            MessageBox.Show("Complete");
                        }
                    }
                    catch
                    {
                    }
                }
                else
                {
                    isruning = false;
                }
            }
        }

wie kann ich den Port hinzufügen?

Wäre sehr dankbar für hilfe
wunderdie is offline  
Old 12/14/2012, 10:26   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
da der werte herr zu faul zum selber googlen ist, das sollte deine frage beantworten:

Quote:
You cannot ping a port but you can try to connect to a specific port using either TCP/IP or UDP. The port concept belongs to the transport layer of the protocol stack (either TCP or UDP) while the ping is at the lower network layer (the ICMP protocol).
Quelle:

1. Google Suchergebniss für ".net ping specific port"
tolio is offline  
Thanks
1 User
Old 12/14/2012, 16:34   #3
 
elite*gold: 60
Join Date: Dec 2012
Posts: 1,359
Received Thanks: 36
oh das wusste ich garnicht
naja aber danke
wunderdie is offline  
Reply


Similar Threads Similar Threads
Problem with ping
02/09/2012 - League of Legends - 8 Replies
Hey Guys got a problem with my Ping. See here: http://img7.imagebanana.com/img/4vh2v3df/thumb/pi ng.png Cant see my ping :S so cant tell how high it is
ping problem?!
02/11/2011 - CrossFire - 3 Replies
moin moin hab vorhin meinen pc neu aufgesetz weil zu viel schrott drauf war^^. und hab jetzt mal wieder cf installiert und hab gesehn das ich einen anderen ping hab wie ich vorher hab, hatte vorher 28rum immer und jetzt 90 rum. woran kann das liegen? habe wlan hatte das problem schonmal dann war es auf einmal weg. aber was ich gesehn hab das jeder so einen hohen ping hatte, kann das jetzt sein das der patch später um 6 uhr kommt?? weil die neuen dayli kommen auch immer um 6 und da jeder so ein...
Ping Problem!
07/27/2010 - CrossFire - 8 Replies
Hallo Com. Seit ungefähr 2 tagen spinnt mein Ping bei Crossfire... z.B. springt er von 46 auf 734 , und dann wieder auf 76. Mein Internet geht jedoch ganz normal wie immer , also keine Laggs oder ähnliches. Kann es vielleicht sein , das es was mit z8games.com zutun hat? Oder auch mit den Servern? z8 ist ja bekannt für Serverprobleme :) Hilfe wäre echt nett ;)
Ping problem Please Help
12/20/2009 - Conquer Online 2 - 6 Replies
Hello Sometimes I go into the game Then I got into a lot of Ping My normal ping is 100-800 I think Sometimes a little more but it does not matter .. I'm talking now about the ping .. 10K and 15K and 100K and 0000 How do I enter the game after a few seconds it comes out because of the ping Than he knows what's the problem? I have an excellent new computer ...
ping problem
04/12/2007 - Conquer Online 2 - 13 Replies
My connection speed is high but the ping always is big and i find myself dead is there any program or way to make it lower



All times are GMT +1. The time now is 13:21.


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.