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 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



Communications :: Ping An IP Address And Store The Response Times?

Apr 12, 2010

Is there a way to ping an IP address from VB.NET and store the response times?

View 2 Replies View Related

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:


View 21 Replies View Related

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


View 1 Replies View Related

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 View Related

GridView - Check Each Row And Do Ping To IP Then Write Result

Jul 14, 2009

I have a gridview with two cells cell(0) is a IP-number and cell(1) is a resultTxt. I have X number of rows. I want a solution that check each row and do a ping to the ip and write result to result. I want to do the ping in a new thread and i want to be able to do more then one at the time. So I want a loop that keeps checking the ones that are not online until they goes online. It's the thread-part I have questions about, looping gridview and doing a ping I can manage, but it I don't do it in a thread the interface freezes.

View 2 Replies View Related

Office Automation :: Ping IP Address In Excel?

Apr 13, 2011

I am looking for a VB script that will test connectivity on an appliance IP and Gateway IP.I have an excel spreadsheet that consists of three columns (Location, Appliance IP, Gateway IP). What I am looking for is the ability to double-click on the Location cell and have the Appliance IP and Gateway IP pinged with the backgrounds of these cells changing from no fill to red/green depending upon the ping result

View 2 Replies View Related

Loop To Ping A List Of Ip's Return The Results And Save Them To An Access Db

Aug 6, 2009

Sorry for new thread--i have this code, basically a loop to ping a list of ip's return the results and save them to an access db:


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


View 24 Replies View Related

Get A Error" Method 'Private Shared Sub Ping Does Not Have A Signature Compatible With Delegate 'Delegate Sub ?

Jun 1, 2010

Public Class SendPings
Shared Sub New()
AddHandler Post.Saved, AddressOf Post_Saved[code].....

I get a error" Method 'Private Shared Sub Ping(item As BlogEngine.Core.IPublishable, itemUrl As System.Uri)' does not have a signature compatible with delegate 'Delegate Sub WaitCallback(state As Object)'.

View 4 Replies View Related

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 View Related

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 what i have 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("", 500) Then


View 2 Replies View Related

Ping In C# Other Than The Way Found Here?

Dec 29, 2009

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

Dim pinger As New System.Net.NetworkInformation.Ping

View 2 Replies View Related

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 ?


View 5 Replies View Related

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 View Related

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 View Related

Adding Port To Ping?

Sep 8, 2010

I am using 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

How would I go about this?

View 3 Replies View Related

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 View Related

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.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click


View 4 Replies View Related

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 View Related

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.

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


View 8 Replies View Related

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 View Related

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 View Related

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 View Related

[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


View 39 Replies View Related

.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:


View 2 Replies View Related

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 View Related

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.


View 1 Replies View Related

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 View Related

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 View Related

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 View Related

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


View 7 Replies View Related

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.")
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 View Related

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 View Related

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 View Related

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 View Related

Forms :: Send Email After Five Ping Fails

Jan 7, 2009

I'm making a network monitoring program, and the way it works is after five ping-fails, it sends an email, but I cant get it to work! the test email works fine, so its not the email code.

Dim s As Short
Dim newstr(4) As String
Dim I As Integer
Dim name As String
Dim MS As String
[Code] .....

View 13 Replies View Related

IP Testing Tool - Ping Set Of IP When Button Pressed

Oct 23, 2009

I'm very much a beginner programmer in Visual Basic 2008 Express. I am trying make a program that when a button is pressed, it pings a set of IP's, let's say in Listbox1 and have it go down the list of IP's. The good ones will be added to Listbox2. I would like to know how I can have the listbox contain multiple lines as well as getting the ping information to check if the IP works or not. Then if the IP is up and running it will add it to listbox2.

View 21 Replies View Related

Opening Sockets To Check Server Ping

Jun 29, 2009

I am trying to use the method to check a server's ping. what I realize is that I need to open a socket. I do not know how to do that. I have a textbox with the website url.I have a label that will display ping.

View 2 Replies View Related

Ping Hostname And Response With Status Of Machine

Jan 27, 2009

I have this code below that pings a hostname and responds with the status of the machine:
Public Function PingHostname(ByVal strServerName As String) As Boolean
Dim blnPingResult As Boolean
Dim objPing As New Ping
Dim objIPStatus As IPStatus
[Code] ......

My question is... whenever the machine is not available it hangs as it times out and eventually fails and catches an exception. Is there a better way to do this so my application doesn't hang? What I have is a treeview with a list of computers and when I hit F5 it executes this code and pings the server.

View 9 Replies View Related

Ping Ip Addresess From A List Of Items That Are In An Xml File?

Oct 27, 2011

winform not webpage is it possible.i need to ping ip addresess from a list of items that are in an xml file and displayed in a datarepeater.and then return the response to a non-databound textbox inside each "record" in the datarepeater.i can ping fine if i hard code ip adresses into the program, but haven't been able to access anything inside the datarepeater.

just as a test i set a messagebox to give me the text of a label i have inside the repeater, even though on screen the label says server02 the message box shows the label.text as being "label15".

View 6 Replies View Related

Copyrights 2005-15, All rights reserved