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


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

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

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

Ping Utility - Display Websites Response In A Textbox

Jan 10, 2010

Ok so basically im trying to create a small program in visual basic 2008, which will simply ping a hardcoded url in the code and then display the websites response in a textbox. [Code]

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

Communications :: Show Ping Round Trip Time?

Nov 8, 2011

I am trying to figure out how to show the round trip time it took to ping a server. I know the following code conducts the ping and that the 1000 is for the miliseconds however I can't seem to figure out how to capture the time it took.

Code:
If My.Computer.Network.Ping("www.whatever.com",1000) Then
MsgBox("Server pinged successfully.")

[code]....

View 8 Replies

Communications :: Write A Program To Ping Computers On Network To See If They Are Turned On?

Jul 4, 2008

I am trying to write a program to ping computers on my network to see if they are turned on. So far i have the following:

Code:

If My.Computer.Network.Ping("192.68.0.5") Then
MsgBox("Computer is on.")
Else
MsgBox("Ping request timed out.")
End If

If i use ip addresses, this works fine but i would rather use hostnames due to the ip addresses being dynamic (something which is outside my control). Using the hostname, it reurns "Computer is on" if the ping is successful, but if the hostname cannot be found, instead on returning "Ping request timed out", an error occurs as follows:

A first chance exception of type 'System.Net.NetworkInformation.PingException' occurred in System.dll

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

Communications :: Get Response From Php File?

Aug 21, 2008

Code:
Private Function web_scan(ByVal code As String) As String
Dim myReg As Net.HttpWebRequest = _
DirectCast(Net.WebRequest.Create(ServerSelect.Text & "/scanner.php?code=" & code), _

[Code]....

I need to give a variable to php file via GET and recive responce. HttpWebResponse dosen't work on my PocketPC so I need n alternative.

View 2 Replies

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

Communications :: How To Get Full Response With TCPClient

Jun 27, 2011

I'm having problems retrieving the full source code of a website (it only returns partial source) with TCPClient. My code is below if you could either correct it or lead me on the right path, it would make my day. [code]

View 5 Replies

Slow Response Times On VB (VS2008)?

Jun 18, 2009

I've just upgraed from VS2005 to VS2008. On VS2008, I'm getting a very irritatting slow response. I run my Windows code (it will take some few seconds), (well, no complained about this) But when I stop the program execution to go back to code, it will take from 5-20 seconds before I get cursor control (i.e. it hangs for this time). Any fix to this? I have even gone to an extend of re-installing OS (Tried both XpSP3 and Vista Busines), Problem same. Please assist as I'm now begining to be frustrated.

View 6 Replies

Communications :: Used To Assemble And Send Raw Packet / Receive Response Packets?

Sep 14, 2008

What Visual Basic code can be used to assemble and send a raw packet, and receive response packets? I looked on MSDN and I couldn't find any documentation for anything used to send a packet.

View 2 Replies

Communications :: Determining IP Address

Aug 5, 2009

Is there any easy way to determine the IP address for the computer that an app is running on. I looked through the System.Net namespace and didn't see anything of the sort.

Basically, I want to display the IP address to the user, instead of walking them through how to do an "ipconfig". They then can put that IP address into another app, so the one app can talk to the other via UDP.

View 2 Replies

Communications :: Incrementing An IP Address?

Jul 11, 2011

I am trying to make a simple port scanner to scan a rang of IP's so like 192.168.4.245 to 192.168.5.100. I am using Visual Basic.Net 2010 and am having trouble converting the IP from a String to a Long so that I can increment it and convert it back to a String. For some reason VB.Net 2010 doesn't include the winsock controller and therefore I am having problems finding a method that works similar to inet_addr() which makes conversion much easier. I found an example on one of the forms here

Code:
Private Sub Command1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Command1.Click

[code]....

View 3 Replies

Communications :: Getting Local IP Address In Vista

Jul 14, 2008

I'm running into a problem with this code:

[Code]...

The problem is that I'm running on Windows Vista and the above code seems to want to return the IP V6 information and not the V4 information. How can I force it to return the V4 information?

View 1 Replies

Communications :: IP Address Static Or DHCP?

Apr 12, 2010

I am trying to write a quick utility that will find out if a Windows XP computer is set to Static or DHCP and write a log file c:computername_static.log or c:computername_dhcp.log.

View 2 Replies

Communications :: Find Device On Network By Its Mac Address?

Feb 6, 2009

I have a small embedded web server and to setup its network parameters I use a serial port, however this is giving me a lot of trouble due to USB to serial adapters (in some computers work in other doesn't).

However the other day I saw that Buffalo has a little program to find their NAS boxes (or network drives) when you don't know their IP address or got the wrong one so I assume they do it by looking for mac addresses.Is there any way of doing this with VB 2005 or higher? Basically I don't know the IP of the embedded server so I need to find it on a network, how do I find it?

a) I could do a general IP scan assuming it is on the same subnet than the host computer
b) if it has a different subnet... a general IP scan is not going to work, is it?

View 2 Replies

Communications :: Null Exception Physical Address

Apr 8, 2010

[Code]...

Anyone know why, Every time I try calling something with this PhysicalAddress it says Null Exception, and the debug always displays nothing inside the Var's, Is this a bug or something? Im using Framework 2.0 >:O

View 3 Replies

Communications :: [VB2008] Find The IP Address Of A Game Server

Mar 17, 2009

I whould like to find the IP address of a game server that sends UDP packets to my PC. Of this server I know the fixed Port number, but not the IP address

I can read the netstat -anp udp data and store them in a text file... but this command don't displais the IP Address and the Port number of the external servers, only lots of asterisks

the question is: how to retrieve this IP address?

View 2 Replies

Store Each Component In A Particular Address Location

Jul 14, 2009

I am doing electrical circuit simulation in vb.net . i want to store each component in a particular address location. If i click the relay component then pop up come and ask the location then if i give 0001 it will store in that location .i don know how to do it...i give a model image in the below link,

[Code]...

View 3 Replies

[2005] Store The ComboText As Well As The Number Of Times That Particular Word(s) Was Clicked On Inthat Session?

Mar 24, 2009

I have a combobox, which I use to store the ComboText as well as the number of times that particular word(s) was clicked on inthat session. The code I use for the Combobox looks like:

Code:
Private Sub cboSSCourse_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboSSCourse.SelectedIndexChanged

[code].....

The problem is, once it has found a duplicate item, it stops counting.What I'm trying to say is, it finds ASP 2 Advanced as a duplicate, with its "click time", it finds Dreamweaver Advanced as a duplicate, but doesn't find its "click time"I need to find the items, then add together all their respected click times, for example: ASP 2 Advanced has 5, then 2 So the total must be 7 Dreamweaver Advanced has 1 and 1 so the total must be 2?

View 10 Replies

InputBox Function - Program - Allow User To Input 5 Payrolls For Store 1, Store 2, And Store 3

Mar 22, 2012

I am coding a program that will allow the user to input 5 payrolls for Store 1, Store 2, and Store 3. The total of the 5 payrolls are then added together and shown in the respective Store's labels. A total label is also there to add up all the totals into one number. The numbers in the label must be in currency form. My problem is the numbers don't add correctly when I hit calculate. The first two numbers add together, but then after that the number just seems to subtract a random amount.

So far I have this --

Public Class Form1

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub

[CODE[...

View 14 Replies

Communications :: Send A Command Via RS232 Communications

Jan 26, 2009

I am using VB2008 Express and am curious how to send a command via RS232 communications. The string that I need to send is 02h PON 03h. The start and end bits are 02h and 03h.

How can I convert 02h and 03h to its ascii form. In hyperterminal, I use the sequence {(hold)ALT 0 0 2} on the number pad to send the start bit.

I am using this code currently without the start and end bits

Code:

View 8 Replies

Enlarge An Image Up To 32 Times Or 64 Times Bigger Than Original?

Dec 12, 2011

I want to enlarge an image, possibly up to 32 times or 64 times bigger than original dimensions (so that the user can see each pixel) if possible. The following is a simple function that I have to enlarge an image.

Private Function xEnlarge(ByVal Source As Image, ByVal Rate As Double, Optional ByVal Quality As Drawing2D.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic) As Image

[Code].....

View 6 Replies

Forms :: Find If Times Is Between 2 Times?

May 13, 2009

I have just started using vb.net and I have a checked list box with times throughout the day shown as

00:00 - 00:14
00:15 - 00:29
00:30 - 00:44
00:45 - 00:59

What I am trying to find is a way to get the current time and find which list item it fits into. What I think I need to do is to first of all get the current time and then go through the list splitting each item into 2 times and seeing if the current time fits. For example: Split the item 00:00 - 00:14 to 00:00 and 00:14 and then check if the current time is more than 00:00:00 but less than 00:14:59 and if so do certain task.how to go about taking each list item and splitting it into 2 separate times so I can check between them?

View 2 Replies

Server Response Was Successfully Sent To Client Without Client Response Back?

Apr 21, 2010

i made a tcp/ip application using the .NET TcpListener class, my problem is that sometimes (about 30 / 4000) the connection between the client and the server got interrupted in the middle and the server response to the client is lost.is there a way to know if the server response was successfully sent to the client without the client response back?

View 9 Replies

IP Address Filter Or Mask To Only Allow Valid IP Address Before Pinging Or Testing For Network Connection

Jul 6, 2011

Are there any IP Address filters or masks available in Windows Forms as per following screenshot? A backslash shouldn't be allowed or it should be filtered somehow.

View 1 Replies

Usage Of Each Socket Address (protocol/network Address/port) Is Normally Permitted?

Aug 11, 2009

SocketException was Unhandled: Only one usage of each socket address (protocol/network address/port) is normally permitted I get this error every time i click collect a second time.

[Code]...

View 3 Replies







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