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
ADVERTISEMENT
Feb 16, 2009
I need to write a program that can be distributed over a network of 400 computers and that can be updated if necessary. How do i do that with VB if i can at all? What should i learn?
View 2 Replies
Dec 20, 2010
I need to write an app that transfer files and folders to others computers in my network vb.net.
View 3 Replies
Jun 12, 2011
I have created a program that allows me to remotely access computers on my network (not all done by me i found some code online) however i want to modify that program to allow me to connect to computers not on my network. How can i go about doing this? My program consists of a client and a server. When the server runs it listens for the client on the client side i enter the IP address and it connects so i can send remote commands to the remote system.
View 4 Replies
Oct 8, 2008
I am playing with network sockets as I need to work on a client-server application. So I have tried this simple code from VS help:
Code:
Dim tcpClient As New TcpClient()
'The following line do not belongs to original code 'But I needed to add it as debugger told me that 'I couldnt getStream from closed sockets
tcpClient.Connect("127.0.0.1", 8000)
Dim netStream As NetworkStream = tcpClient.GetStream()
If netStream.CanWrite Then
[code]....
So, I supposed that the code above would write the message to the loopback IP (127.0.0.1), it would be kept in the network buffer and would be spited out when it readed the same loopback IP. However, when it gets the line whre it should read the stream, the program just stalls and keep reading it forever. I have tested the stream with as if it was just awaiting for something to read. I have tested the stream with getStream.DataAvailable and it returned me False, what makes me guess that the data is NOT being properly written to the IP.
Firstly I thought that it could be something with the loopback IP, then I tried to provide the machine local IP (192.168.2.25) but I got the same behavior: code stalls...
View 5 Replies
Nov 18, 2011
I have a .NET 2.0 *.dll that calls My.Computer.Network.Ping(). The *.dll is then run out of an *.exe via AppDomain.CreateDomain() and Invoke(). The problem is that this works just fine under Windows XP but under Windows 7, I get an exception saying that no network connection is available. I tried the Ping() call out of a small console application under Windows 7 and it works just fine.
[Code]....
View 6 Replies
May 18, 2011
I am tasked to write a new program to remote into our tech support computers to help them out while they are trying to remote into their computers to see what is up if they are having problems. I was asked to be able to not move their mouse if they were in Word, Excel, in an application writing a problem ticket,
View 1 Replies
Jun 19, 2008
I'm trying to write a vb.net program that will upload a file to a FTP site that has SSL (explicit, although I'm not sure what this means).The sample code and explanations I've Googled always assume when it's SSL that I'm using a client certificate. But I have no certificate to load.I simply need to login, accept their certificate and upload my file.When I accept their certificate am I actually installing it on the client? For example of FileZilla a box pops up and I just click on accept, then my login is complete.
View 1 Replies
Apr 12, 2010
Is there a way to ping an IP address from VB.NET and store the response times?
View 2 Replies
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
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
Aug 22, 2008
I was woundering if it is possible to send messages over network to a lan computer . if it is possible does anyone have the code to make this possible
View 2 Replies
Mar 27, 2012
I need to transfer Recorded WAV Files betwenn computers. Now I want to transfer C:/Rec/Record.wav from Client to Server, then back, without the client that sent it take it. I know how to do that, the only problem is sending it. How do I do file transfer in winsock vb 10-11?
View 1 Replies
Jan 3, 2010
I work as an IT Administrator and manage a few Servers, Routers, VPN Connections over a number if locations. What I am wanting to do is create a vb.net app that will go out and ping say every 2-5mins each of the servers, routers, that are listed and then shows beside the Hostname a Green Circle which means online and if its a Red Circle its offline, and the screen refreshes if their is a problem or a device / service comes back online.
Then if its offline email a particular email address showing the hostname of either the server or router and which location saying its offline. If possible to make it easier to change the devices to show possible have a txt file or something like that with the Hostname, IP Address, Location.
View 2 Replies
Jan 22, 2012
Part of an application that I'm building searches the network that the current computer is connected to and returns a list of the IP & MAC addresses and the hostname. It is based largely on the post by richard__deeming at [URL] At the moment, it will only get the information about computers that are in the same workgroup, but I have several computers that need to be shown, that are joined to a domain rather than the workgroup. How can I get the program to find every computer on the network?
View 2 Replies
May 18, 2012
how to program an application that scans the computer in the network in vb.net?
View 3 Replies
Aug 10, 2010
I am writhing a program to replace a file in network computers. but the problem is in our network there is 32 bit systems and 64 bit systems. There are different files to be replaced for 32 and 64 bit systems. I have written a program to replace the file.if we give the target of the location (eg \drd001-dsk1C$Documents and SettingsAdministratorPlayerfilename where drd001-dsk1 is the computer name in the network) Is there any way to check if the system that i need to replace the file is 32 or 64 bit
View 7 Replies
Aug 30, 2011
am trying to get the IP address of all of the computers on a network. I know how to fetch the names of the computers on the network but I need to fetch the IP address to. I have a listview control with 2 columns 1 for the name of the computer (1st) and another column for the IP addres (2nd). I have the code so can the IP address be displayed in column 2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ListView1.Items.Clear()
[code].....
View 9 Replies
Dec 29, 2007
How can i get a List of all Arivable Computers in my Network/Workgroup ? I need to add all to a Listbox
View 7 Replies
Apr 11, 2010
I wonder how do I list all computers on the network with vb 2008?I know to do in vb6 I have no more sense in vb 2008.
View 2 Replies
Sep 8, 2009
I have an application that automatically updates addins for excel from the server to all the computers on our network. right now all i get is an error if excel is open, but what I want to be able to do is check if excel is open on each computer first and give the user a chance to save their current work then close excel. otherwise i cannot update their addins if excel is open.
View 3 Replies
Jun 8, 2011
Here is my Prob- we have a main router from which we use a distributor or hub for internet connection distribution, ever computer connected automatically obtains IP address of format say - 180.50.50.xxx to access net connection.if any connected computer has different IP format than the given one, it cannot access internet.
View 1 Replies
Jul 31, 2008
I would like to know how is it possible to send data over the network using VB 2005 .... ! It must be capable of being the type of sending short text over the network just like chatting
View 1 Replies
Jul 5, 2010
I want to develop a process that will monitor computers that logon to my network. Gather information such as computer name, time of logon and log out.The process would be located in the icon tray?
View 3 Replies
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
Dec 17, 2011
I have recently finished a console application and deployed it to several computers on our network for testing. As it is just an EXE a copied to the hard drives of selected computers for now. When the app is launched it writes info to an sql DB so I always know which computers it is on.
During the past few weeks I have modified this app at least 6 times (improvements, adjustments, etc)
It is a paint to keep going back to the computers to update it with the new version, and getting mixed up which version i am on - LOL I am looking for advice on how I would go about doing this automatically, for example, it would be cool if I just had to put an updated file in a repositry and clients would use this to update.
In Visual Studio, when I view the properties of my application>assembly information - I can set a file version. Is it possible to extract this info and store it in a variable? I would like to dump the in my DB. Also I could then possibly compare the file version of the launched app against an updated file in a network share folder.
View 16 Replies
Jul 30, 2011
i m new in .net programming i am wanting to develop a network application by which i can watch the screens of other computers connected in LAN,i can give permissions/privilages to other users.
View 5 Replies
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
Mar 28, 2010
My issue, however, is connecting to the wireless laptops as well.
[code...]
I need to grab a list of all networked computers, and I definitely include systems on the wireless
network in that list. I'm just not sure how to approach this. Being able to enumerate through a
'tree' of all networks and systems available would be a major plus.
View 5 Replies
Jul 29, 2008
At my workplace I have been developing a server/client application which receives on port 8000 and sends on 8001. We do not have any other applications that use these ports, but we do have an application that accesses an SQL database in which part data is stored.
When I am doing testing on the application, if the server were to crash while the client app was sending a packet, could this lost packet cause issues with the network at all?I ask because for some reason we have been receiving connection timeout errors from the application that stores our product data, but we haven't made any changes or started running any new jobs on the network that I am aware of.
View 1 Replies