Pinging Range Of IPs
Aug 13, 2009
I got help with pinging a range of IPs earlier and was given this code. I was then trying to change it slightly so I could scan more than my network between any given range e.g. 125.1.1.1 to 126.12.25.66.[code]
View 3 Replies
ADVERTISEMENT
Jul 28, 2009
I want a start IP and end IP and it to ping all the IPs between and including those IPs. I've seen examples of when it gets the subnet and then iterates through from 0 to 255 but I'm struggling with this. Is there a way to make an IP address object (is this the right word?) that iterates the same way as an IP would e.g.goes from 192.168.1.255 then would go to 192.168.2.0.
[Code]...
View 1 Replies
Feb 1, 2012
I have a list of machines, 1 per line in a file called devices.txt.
What I need to be able to do is to ping each of these machines, and then output each machine that is online to another text file called machines.txt
The files need to just be the machine name and have 1 machine per line.
View 1 Replies
Aug 1, 2011
recently ive been making a app for minecraft and im trying to add a new feature what i want it to do is ping the server and then tell me if its on or off any server using a redirector like dyndns or no-ip will ping back as online even if they are offline because the redirector isn't down or.[code]
View 6 Replies
Nov 24, 2011
I've run into a bit of a problem using Async ping. Basically, I want to ping computers in the list before I run the next bit of my program. The computers who I can ping are added to a list and that is used in a background worker. Trouble is can't seem to work out how to wait until after pinging ALL computers in the list, either successful or timed-out. Is there something a long the lines of 'If Async Ping is running'?
Private Sub pingCompleted(ByVal sender As Object, ByVal e As System.Net.NetworkInformation.PingCompletedEventArgs)
If e.Reply.Status = Net.NetworkInformation.IPStatus.Success Then
complist.Add(e.UserState)
Else
'do nothing
End If
End Sub
I need the next bit to wait because if 'complist' is changed while it's being used I get collection errors.
View 7 Replies
May 5, 2010
Ping Email Address to see if it exists.
I would like to ping an email to see if it exists. Does anyone know how I can accomplish this?
View 5 Replies
Jun 9, 2012
I have a class that uses My.Computer.Network.Ping to get a boolean value on whether a IP address or hostname is reachable.However, when I'm testing that class, I want to disable pinging so that during the test whenever I run the My.Computer.Network.Ping it will always return false or throw some kind of exception.
I have tried the following, but I still get a true returned (meaning, the attempts to disable ping didn't work)
Dim restricited As New System.Net.NetworkInformation.NetworkInformationPermission(System.Security.Permissions.PermissionState.None)
Dim mySocketPermission1 As New SocketPermission(PermissionState.None)
Dim myWebPermission As New WebPermission(PermissionState.None)
myWebPermission.Demand()'
[Code]...
View 1 Replies
Dec 14, 2009
I am using the following code in the Load method of a VB form to generate random numbers in the range 1 to 8. Without fail after enough loops the range is exceeded and 9 is the random number returned every time. The line using the Rnd function is from: Rnd Function (Visual Basic)
[Code]...
View 8 Replies
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
Feb 9, 2010
Ive got an app that holds a list of site we have, At each site there are a few devices. The idea is when they click on a site all the details for the site are loaded and then a second thread sits and pings each device to see if its live. Im trying to do this in a seperate thread so if they click another site while its still pinging them it doesn't wait before it switches site. This all seems to be workling fine except if you click through the sites quickly, when you do that it will eventually come up with
Quote:
{"Collection was modified; enumeration operation might not execute."}
The error flags up on the "Next" line in "ThreadedPing"
Thread stuff
Public Sub ThreadedPing(ByVal dt As DataTable)
Try
Dim dr As DataRow
[CODE]...
View 2 Replies
Mar 25, 2010
I am getting the error:"Range variable 'sender' hides a variable in an enclosing block or a range variable previously defined in the query expression."for this
Imports System.Data.SqlClient
Imports System.Linq
Public Class Form1
[code]....
I can select any other item from the table without the error. "sender" has the same properties as "receiver" in the SQL table.
View 2 Replies
May 24, 2012
Is there a way in VB.Net to "Ping" an email address to see if that email is a real one that does not give any errors?
If yes, can you show what the VB.Net coding looks like to implement this?
I plan to use this in an app that requires the Customer email and it would be nice to validate it as the call taker enters it into a form before saving the Customer details.
Here is the code we are using to send an email promotion to all of the customers in our customer table:
Private Sub RibbonButtonSendTestEmail_Click(sender As System.Object, e As System.EventArgs) Handles RibbonButtonSendTestEmail.Click
Dim SmtpServer As New SmtpClient()
[Code].....
View 2 Replies
Jul 7, 2010
I'm using vb in excel 2007 and need to work through a range or array, the size of which varies from time to time.
The examples of using range always demonstrate using literals eg "A1:A25"
How can I programatically determine the end of the range - ie up to where the cells value is blank
And then can I use a variable in the range statement - eg .[A1:Lastcell]
View 1 Replies
Sep 27, 2009
Public extreme_foods As New System.Collections.ArrayList()
Dim i As Integer
i = 1
For Each s In split2
extreme_foods(i) = s
i = i + 1
Next
anyone know why extreme_foods(i)=s is giving INDEX OUT OF RANGE??
View 1 Replies
Jul 4, 2011
I'm building this class to download files in parts/sections/segments. In .NET 4.0, I can use this code to specify the range to download from
long startPos = int.MaxValue+1;
HttpWebRequest.AddRange(startPos);
and it works because there is a long overload for the AddRange method. When I looked up the .NET 3.5 version, I realised the AddRange() method allows using int only. The possible workaround would be using the AddRange(string, int) or AddRange(string, int, int) methods. Since the class will have to work in .NET 3.5, I'll have to go with the string specification but unfortunately I can't seem to find any sample code that shows how to specify ranges using this procedure in .NET 3.5. Can anyone show be how to do this?As the first code sample I wrote shows, I would like to specify a range of type long instead of int. Using type int allows requesting for byte ranges only up to 2GB but long allows requesting for byte ranges beyong 2GB.
The question therefore is: How do I specify byte ranges of 2GB or higher on HttpWebRequest in .NET 3.5?
View 3 Replies
Nov 4, 2009
On my form i have a textbox that users can enter a value into, how to i check whether the value entered in the textbox is within the range bewteen two other numbers?
i.e
Top int is 10
Bottom int is 5
The user enters 7 into the textbox
I want to check that the value entered is within the top and bottom range, and in this case as the number 7 is between 5 and 10 the answer would be yes?
If the user had entered 3 for example, then the answer would be no.
The Top and Bottom Int's will be set at runtime by the value entered into another textbox so will differ each time the user uses the form.
View 2 Replies
Jun 23, 2010
I have following code and I can filter data on grid but when I pick same date in 2 datepicker it shows nothing.
[Code]...
View 9 Replies
Dec 13, 2011
I have a string array, and I need to get a range out of that, say 10 items counting from index 20.
I see there is an extension method called Take that can take a number of items from the beginning of the array, but I also need to specify the starting index.
View 3 Replies
Apr 28, 2009
i am using the below code but getting error.
View 5 Replies
Apr 23, 2011
Write a program that will allow the user to be able to choose whether they want to add up a range of numbers in one of three different ways. 1) even numbers 2) odd numbers, or 3) consecutive integers. Use buttons for user choices.
Instead of limiting the user to just adding up these numbers you will also supply an Average Button that will show the average of the numbers rather than just the sum. Only the result that they have selected should be visible.
The program should look similar to the program below:
This is the program I was asked to make.
my code soo far is.....
[code....]
I couldn't figure out the formula to use for this but I assume its the same for each part of the program just with a little change.
View 6 Replies
Sep 21, 2010
my question is to turn the text in a text box red when it receives focus, and black when it loses focus. I seem to get that "index is out of range" pop-up message. [Code]
View 3 Replies
Apr 25, 2010
I am trying to make a tabbed web browser, on my first tab every thing works fine but on my 2nd 3th etc tabs when i try to do anything type in a url go home refresh anything it says index 0 is out of range perameter name: IndexI am new at Visual basic and i cant find what my problem is.
View 9 Replies
Dec 31, 2010
setFont(txtPKName, Trim(Main.gridview1.Item(2, 0).Value), Main.gridview1.Item(3, 0).Value, Main.gridview1.Item(4, 0).Value)
View 3 Replies
Dec 6, 2010
in my asp code i was using
<%
UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If UserIPAddress = "" Then
UserIPAddress = Request.ServerVariables("REMOTE_ADDR")
[code]....
how could i do something like this in asp.net(using vb.net)
View 1 Replies
Aug 16, 2010
I'm getting the following error:
[ArgumentOutOfRangeException: Value to add was out of range.
Parameter name: value]
System.DateTime.Add(Double value, Int32 scale) +7657639
System.DateTime.AddDays (Double value) +19
...
The line from which this error originates has the following code:
expires = Now.AddDays(30)
It occurs irregularly and irreproducibly. The server date/time is correct and set to GMT. I've heard that it could be some curiosity to do with timezones, but that is speculative. It seems that we're some time from the year 10,000 yet, so I can't understand why adding thirty days to the current time could cause this! Culture settings perhaps?
View 4 Replies
Oct 28, 2009
why does this return an error:
Dim stuff As New System.Collections.ArrayList()
Dim i As Integer
i = 1
Dim split As String() = temp_string.Split(",")
[code].....
the stuff(i)=2 line is returning the mentioned error
View 2 Replies
Jun 2, 2011
I've this very stupid litle problem. I want to populate a combobox with numbers ranging from 00 to 99. But when I ad them with a loop as an integer the first ten numbers apear only with one digit.I wonder, how can I ad a second digit to them like; 00, 01, 02... and so on without me typing the whole list?
View 2 Replies
Jul 21, 2010
I have a problem with my loop perhaps my index.I want to loop throgh list box items one after the other picking EmployeeID,GroupName,PeriodID respectively after which i insert into a table.I have written this codes but it is giving me an Arugument out of range exeception indicating.You could see that Even if I terminate the loop at i-1, or start k from 1 and end at i, still i gives me the error.[code...]
View 3 Replies
May 31, 2010
OK I have been gooding for over 8 hours trying to figure this out. Bare with me I do not work with arrays much.I have brought an array in from a range in excel. This works fine. Through debugging i can see the values are brought in correctly.
Issue is I want to see if a string exists within that array (or cells).I have tried lots of things and pretty much mutilated my code but here it is:
[Code]...
View 5 Replies
Jul 5, 2010
Say I am pulling the following table, I would then like to select an ID randomly. I understand how to select a random number using a Randomize() call followed by the relevant syntax but I want to pre-define the range.
i.e. Table Data
ID | Name
4345 Mike
3456 Lee
4567 John
There will be many more names but for this example you could use 3 or 4 etc..
View 2 Replies