Ping Using VB - Performance ?

Jul 20, 2009

I have this code to ping a list of over 400 switches , the program works fine but for some reason the first time i ping all the switches alot of the attempts time-out(even tho they shouldnt) which makes the program alot slower , if i click ping again less of the attempts time-out(and as a result the program runs faster) and if i click it a third time i usually get a completely accurate result with all the switches pinging back "success" (except for a few which i know for a fact are down anyway) any ideas why this is ?

CODE:

View 5 Replies


ADVERTISEMENT

Ping Using Vb.error - Ping An Ip Address And Store The Result In An Access Db

Jul 8, 2009

i have tried altering some code i have to ping an ip address and store the result in an access db.i had it working when i had the ip hardcoded in as a string but I am now gettin an error.instead of having the ip address hardcoded in to the code i want it to be read in from the access db but im now getting this error:System.nullreferenceExceptionbject reference not set to an instance of an object at...button1.click event args ei have underlined the piece of code i tried to change

Imports System.Data

Public Class Form1

Dim Ping As Net.NetworkInformation.Ping

[CODE]...

View 39 Replies

What Should Use Instead Of Ping

Oct 15, 2009

In my Windows Forms application (on startup) I use the ping command to check if both the Internet connection and my SQL Server are alive.Is there any "better" way-command I should use for accomplishing the above task in the .NET framework 2.0?

View 6 Replies

Ping If Network Is Available?

Jun 10, 2011

I'm currently doing my project to check my server status with ping option. but i got problem to check either the network is plugged or unplugged...I need this checking automaticly using timer...here what i have done....to ping the server is success but when pulgged back the network...error come around..

Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer4.Tick
Timer4.Interval = 30000
If My.Computer.Network.IsAvailable Then
If My.Computer.Network.Ping("www.mine.my", 500) Then

[code].....

View 2 Replies

Ping In C# Other Than The Way Found Here?

Dec 29, 2009

what are other ways to do ping in vb.net or c# other than the way found here:

Dim pinger As New System.Net.NetworkInformation.Ping
MessageBox.Show(pinger.Send("192.168.0.119").Status.ToString)

View 2 Replies

Using Ping And ICMP

Mar 16, 2010

I am trying to create a tool that will test to see if a device is reachable b ICMP and report back with the latency, i.e. send a ping. If possible, I would also like to get the hop count value.[code]I keep getting an error message saying " 'Send' is not a member of 'NetworkTool.Ping' ", but everyone seems to use it. So how do I do get .Send to work?

View 1 Replies

Why Get No 'ping' Sound

Mar 30, 2009

I cannot understand why I get no 'ping' sound when the following messagebox comes up. I'm using VISTA and VB.NET 2008.[code]

View 1 Replies

Adding Port To Ping?

Sep 8, 2010

I am using VB.net to ping a domain/IP, using the following code;

My.Computer.Network.Ping(Address, 1000)

I now want to add a port to the domain/IP - e.g google.co.uk:21

How would I go about this?

View 3 Replies

Create A Ping Test App?

May 22, 2009

I created an application using the Ping control. So far, when "Button1" is pressed, it performs a ping test to [url]... How do I create it so that it will display a message in RichTextBox1, depending on whether or not it was successful?

View 1 Replies

Get All Servers From AD And Ping Check?

Feb 1, 2012

A little background, the client that I am working with has an enterprise AD that is a mess. They have no containers for servers or any organization what-so-ever. They also shutdown servers and did not remove them properly from AD. So I needed to come up with a program that would find all the windows server, identify them by OS, and then check to see if they would actually respond to a ping. (I am aware that this is not a perfect method if they are refusing ICMP's but its good enough for my purposes). The completion of the program will display all the information and then allow the user to save the excel workbook in a location that they choose.

vb.net
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

[code]......

View 4 Replies

Ping A Server Remotely

Jun 27, 2011

I am working this little project where i need to ping some servers remotely. there's three of them. I need o ping them and per say while they're being pinged to have a command window open with the pinging process going to keep an eye untill it can ping successfully.And since this is for all three servers how do i create a program where it will have all three servers being pinged? [code]

View 6 Replies

Ping The First Record In Database?

Mar 14, 2009

I currently have the below code to ping the first record in my database.

I'd like to set it up so that if an IP in the Database pings, it moves on to the next record e.g NetMonListDataSet1.Addresses.Rows(2).Item(0).ToString. if it doesn't receive a response it "sendsmymail()".

I know i need a For Each loop somewhere maybe? But i can't seem to fit it in.

Code:
Dim myProcess As New Process()
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardOutput = True

[Code].....

View 8 Replies

Ping Website While Logged In?

Feb 15, 2012

I'm wondering if its possible to ping a website while logged into the website so you can ping a certain page which you couldn't if you was not logged in.

I seen CMD ping through VB but that doesn't have cookies or anything so the URL is inaccessible.

im currently using cookies and HttpWebRequest atm, which im looking for a faster method.

View 3 Replies

Possible To Ping Website While Logged In?

Feb 15, 2012

im wondering if its possible to ping a website while logged into the website so you can ping a certain page which you couldn't if you was not logged in

View 1 Replies

VS 2008 Get A Code For Ping An Ip?

Feb 15, 2010

code for ping an ip? i want to do something like pinging in cmd, with shwoing results in a richtext box or listview...i found some codes and they don't work and i didn't make it up.

View 11 Replies

VS 2008 Ping Result To Txt

Feb 18, 2010

i have a little problem with the ping in vb. i have a richtextbox and i want to write in a text file the result. I done it, but my txt file loks like this:

[Code]...

View 21 Replies

[2008] Ping Multiple IP's

Sep 14, 2008

Ok so for a while now ive had a program that pings about 15 computers on my network, but the way i have it is pretty messy, id like to somehow make the code a bit cleaner. so what i have is something like this

[Code]...

View 39 Replies

.net - Ping A Server Via A Specific Proxy

Nov 3, 2011

I know that you can easily send a ping request and receive a boolean return type in .NET, using something like:

[Code]...

View 2 Replies

2005 Ip - Ping A Server And See If There Is A Response

Oct 21, 2009

im trying to do is ping a server and see if there is a response. If there is a response then i would like to set an integer to 1 if there is not a response set the integer to 0. I would also then like to gather any servers that had a response into a list box. I know how to build a list box just having trouble getting the code to set a variable if or if there isnt a response.

View 4 Replies

How To Ping Machine Given Hostname Or IP Address

Apr 11, 2005

I have a module that will ping a machine given a hostname or an ip address. Is there an eaiser way to ping a machine using vb .net? I know you can use wsh to open a shell and execute the ping command from a command prompt window then use the ReadAll to get the information ping sends back and from there you can determine if the ping was sucessful or not. How would I do this in VB .Net or is there a better way to ping machines in .net?

View 17 Replies

How To Ping Proxies ? Ie In IP:PORT Format

Dec 26, 2010

Well I decided to try make a proxy checker, like Charion or Elite proxy checker. These programs accept large lists of proxies in the IP:PORT format, ping them tell you the response time see the screenshot of Elite Proxy Checker, im trying to make a simplified version of this program. [URL]I investigated and made my checker using Ping.SendAsync(ip, timeout, ip) method. It was only afterwards that I discovered that you can only Ping IP's using this method, not the ports as well. Ive spent a few hours trying to find the correct class/methods in order to be able to ping ports, reading different forum posts from experts they say its impossible to ping ports only IPS, can only use sockets to try open a connection with the port.

[Code]...

View 1 Replies

NetworkInformation.Ping(), Result Cancelled In .NET 4.0, (but Not In 3.5)?

Dec 4, 2011

I changed target framework from 3.5 to 4.0, no other changes. A simple ping which worked with 3.5, now with 4.0 the result gives Canceled=True. what may cause this?

Public Sub StartInternetConnectionCheckEvery(ByVal seconds As Integer)
Dim timer As New Timer()
timer.Interval = seconds * 1000

[code].....

View 1 Replies

Periodically Ping A Server To Determine When It Is Available From App?

Feb 1, 2011

What I am looking to do is ping a server every 30 minutes to an hour or so and to send an email if the server is not pingable. [code]...

I am creating the project in Visual Studio 2010. All it does now is check if it can ping a server. I would like it to run this code every 30min.

View 3 Replies

Ping A Port With Timeout - No App Freeze

May 6, 2011

I want to ping a port to see if its online the problem is that if its offline it freezes my app for about 20sec![code]....

View 2 Replies

Ping Addresses In Listview At Different Times?

Jan 4, 2012

I have a listview with three columns adress: , status and interval

now, I would like to ping each adress and display its status at different intervals!

Is it possible to do that or I have to PING each row with one timer?

View 4 Replies

Ping.sendasync Memory Leak?

Jan 23, 2011

I'm having a strange issue with a memory leak associated with ping.sendasync. My program has a section in it that allows the user to specify X number of servers/computers to monitor.About every 30 seconds it will execute a routine that loops through the list and sends a ping asynchronously to each server/computer.If I keep an eye on the process memory usage in the task manager it will creep up about 1-1.5MB each time the routine is executed. Now, this program will be used and left running for hours and hours for each person, and over the course of the day the mem usage can creep up close to a gig...... (it happened the other day until I noticed it)

Server Indicators routine (starts the ping.sendasync):
Public Sub ServerIndicators()
ReloadingServers = True

[code].....

View 7 Replies

VB9 Send\receive Ping Information?

Jan 21, 2009

i am trying to ping some terminals and all i could find for code is this

If My.Computer.Network.Ping(IPaddress, 1000) Then
MsgBox(IPaddress & " pinged successfully.")
Else
MsgBox(IPaddress & " request timed out.")
End If

it keeps comming up request timed out message. and i got this from microsoft. instead of a message box i am going to return the response to a listview control but i have to get a successful message first.

View 5 Replies

Verify The PING Of Each IP Connected In Port

Jan 9, 2009

It is possible to verify the PING of each IP connected in port 10009? To list all the IP connected in port 10009 and ping of each IP. Possible?

View 6 Replies

VS 2005 Async Ping Request

Jun 3, 2009

I am using a DataGrid object that updates every 2 seconds using a timer control.I am trying to have the ping request sent asynchronously to speed up the process. I'll explain what I am trying to do in the code in rem statements..[code]

View 6 Replies

Create Ping With Listbox Item And Backgroundworker

Jun 11, 2012

I'm trying to create a small program that will import a list of IP addresses from a text file into a list box and then run a continuous ping on each address (from the list box) and display the results in a label using backgroundworker. The idea is to have a small visual display of the status of network devices.When I try to use a list item I get cross-thread errors.[code]

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved