Code To Autodiscovery PCs On An Ethernet Subnet?
Jan 6, 2011I am working on an application that collects data from PCs on the network using WMI queries. Is there any sample code that knowing the subnet would autodiscover PCs nearby?
View 4 RepliesI am working on an application that collects data from PCs on the network using WMI queries. Is there any sample code that knowing the subnet would autodiscover PCs nearby?
View 4 RepliesI want to read the ethernet port by using visual basic. It would be great if anyone can guide me for this.
View 5 Repliessetting up a Ethernet connection using vb.net...
View 4 Repliesmy ip is 10.10.10.66 my subnet mask is 255.255.255.0 want to get all other computers ip address?
View 13 Replies[code]Through these ports I have been able to connect simple press-button triggers (or switches) and programatically "read" them. i.e. tell when they are open or closed, grounded to earth or not.With modern PCs I am now somewhat limited. I can still use the MIC port and USB port (when connected to a USB/Serial cable) but since WiFi, my ethernet port is now "available". If you've read this far, you already know my question. How can I "read" the ethernet port pins. I realize that perhaps not all the pins may be simply read, but perhaps one or two at least.
View 1 RepliesIn the past I have been able to simply read the physical pinouts on the:
Games Port (DB15) (using PEEKS and POKES)
Parallel Port (DB25) (also using PEEK and POKES(888))
[code]....
Through these ports I have been able to connect simple press-button triggers (or switches) and programatically "read" them. i.e. tell when they are open or closed, grounded to earth or not.With modern PCs I am now somewhat limited. I can still use the MIC port and USB port (when connected to a USB/Serial cable) but since WiFi, my ethernet port is now "available".|||||||| (8 pins).If you've read this far, you already know my question. How can I "read" the ethernet port pins. I realize that perhaps not all the pins may be simply read, but perhaps one or two at least.
I am writing an app that does part of what another app does (I have no access to the source for the other app other than to see Wireshark output.)
I need to send a broadcast over the LAN and then parse the results. However, the sending of the broadcast seems to be code that is direct to the LAN connection, as in it doesn't seem to write to a standard IP/port combo.
I see apps like Raw Ether that do this at a cost of hundreds of dollars.
Is there some way to not have to buy 3rd party stuff to do this in VS2011 w/ VB.net?
I have a remote computer on Cable Internet. Im needing to dial a phone number which is on a Avaya VoIP network. Is there any way to do this in vb.net? Ive noticed alot of stuff using modems and AT commands but thats not what Im really looking for.
View 4 Repliesi would like to ask is there a method which i can read a specific file from another computer??i would like to use IP address to specify the address.
View 21 Repliesi want to make a little program that virtually REplugs my internet cable.
View 1 RepliesI have a folder on my server(windows 2003) that I would like to copy to all computers running Windows XP on a particular subnet.
View 1 RepliesI need test data for a IP Subnet calculator I have developed. I have tested some obvious scenarios, and all seems good, but the person developing can often be the wrong person to test. The calculator can do one of two things:
1 - given an existing network and CIDR(mask), and a new CIDR it will create a number of networks with the appropriate number of hosts.
2 - given an existing network and CIDR(mask), and a list of c,h, (c = count, h=number of hosts) it will create the networks.
How can I convert a subnetmask into binary, so I'll end up with 32 digits? I can convert it into Binary, using Convert.ToString(Long-to-convert, 2). But a subnetmask of 255.255.255.0 returns(it returns it without the spaces though):
1111 1111 1111 1111 1111 1111 0
When I want it to be:
1111 1111 1111 1111 1111 1111 0000 0000
How can I convert a subnetmask into binary, so I'll end up with 32 digits?I can convert it into Binary, using Convert.ToString(Long-to-convert, 2)But a subnetmask of 255.255.255.0 returns(it returns it without the spaces though):
1111 1111 1111 1111 1111 1111 0
When I want it to be:
1111 1111 1111 1111 1111 1111 0000 0000
[code].....
I need test data for a IP Subnet calculator I have developed. I have tested some obvious scenarios, and all seems good, but the person developing can often be the wrong person to test.
The calculator can do one of two things:
1 - Given an existing network and CIDR (mask), and a new CIDR it will create a number of networks with the appropriate number of hosts.
2 - Given an existing network and CIDR (mask), and a list of c,h, (c = count, h=number of hosts) it will create the networks.
I am trying to verify that I have a valid subnet mask. I have already verified that the string format 255.255.255.0 or whatever 255.255.240.0 converts to a UInt32 but now I need to make sure its actually a subnet mask.
The bits should be split between 1's for the network part and 0's for the host part. It should start with all 1's and end in all 0's if it goes from 1's to 0's then finds any more 1's its an invalid subnet mask.
I need test data for a IP Subnet calculator I have developed. I have tested some obvious scenarios, and all seems good, but the person developing can often be the wrong person to test.
The calculator can do one of two things:
1 - given an existing network and CIDR(mask), and a new CIDR it will create a number of networks with the appropriate number of hosts.
2 - given an existing network and CIDR(mask), and a list of c,h, (c = count, h=number of hosts) it will create the networks.
As part of my application I am hoping to be able to get the user to enter their IP address and subnet mask which will then enumerate all of the hosts in between which can then be scanned for various open ports/applications installed.
For instance, With a network of 10.91.100.0/255.255.255.252 hosts are valid 10.91.100.1 - .2
How can this be done in vb.net? I would assume also some error checking would need to be put in place to confirm as to whether the subnet mask was valid as well?
Can anyone point me to some code which can help obtain the network address from the host IP and subnet mask?
View 3 RepliesI have some code to execute code at runtime...
Here is the main
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If TextBox1.Text.Trim <> "" Then
If TextBox2.Text.Trim <> "" Then
[code]....
When the button is pressed, it all works and the following files are created: yahoo.dll and yahoo.pdb My question is this: What is the code to load the already compiled yahoo files to execute the code again, without having to recompile the code?
This code was posted in Chit Chat and everyone is saying how great it is. I just have Visual Studio 2010 and no familiarity with VB6 so I thought it would be good to convert the code to Visual Basic 2010.
[Code]...
this code was not done by me originally and there are some thigns here i dont quite understand i have altered it a bit from my coworkers code to suit my data and it works. but too slow. and when i have 4000+kb excel files it might freeze altogether. ( I have checked tho that when and after this transposer runs it will still be within the excel row limit, i had done calculations before and made a macro to automatically split excel files based on number of columns and rows to make sure this is so ). This code seems to start out fast then goes slower the longer it runs. at least this is what it seems liek to me.
[Code]....
i recorded the following macro in excel 2007:
[Code]...
I recently found this code (provided for third party use on another VB site), however,ll of my attempts to insert it into a class library have failed.I open a new class library and past the code in, and immediately get several errors pertaining to how certain objects can't be found. I find it it is crucial to use this code, unless someone can suggest to me another example of existing code that will do the same thing: make a restricted textbox who imputs can be restricted, that can handle pasting, shortcuts, text property setting, and script-entered text.
Option Strict On
Imports System.ComponentModel
Public Class RestrictedTextBox
[code].....
I have been playing around with different types of native code operations in Visual Basic and then inspecting the code with Reflector to see what kind of MSIL is produced. For example, I wondered, in a one line If-Then-Else different than an If-Then-Else split onto multiple lines, ie.
[Code]...
what is wrong with my code and I get no feedback from my button click event, i have imported. ( code Below) and i have tied differrent combinations of the code without sucess.maybe add extra to my code for the list to show open Port or closed ports.
Imports System.Management
Imports System.Management.ManagementObjectSearcher
Imports System.Management.ManagementNamedValueCollection[code].....
This code is for 2008, 2010 and later versions of VB.Net as it uses an extension method.Please note: If you are using an earlier version ( or you do not like extension methods ) please see the next post.Here is the code I posted on Monday April 30th, 2012.>>Now you can specify the startRadius to be
View 7 RepliesI have this string just down loaded of a Unix server. I would like to remove the box (0x0A) Unix end line code; then replace it with CR+LF normal ASCII code. Also, I would like to do the replace before I save the data, while it in memory.
View 14 RepliesI had a weird series of errors involving e.Graphics.DrawString() when painting a panel.I am using a barcode font [Code 128] with a library that converts text to the proper format for Barcode readers.That's fine, however, when I draw it to the panel, that's where things stop being fine:But, here's where things get funky. When I put it into a TextBox instead of drawing it via Graphics.DrawString(), everything is peachy:In fact, the TextBox one looks much better than the Graphics.DrawString() one! Am I doing something wrong?[code]
View 2 RepliesI realize this post is rather long, but I wanted to give all the information up front instead of people having to ask me for more information.At the end of the re-installation of Visual Studio 2008, there is this message:
"Microsoft SQL Publishing Wizard: [2] Error: Installation failed for component Microsoft SQL Publishing Wizard. MSI returned error code 1638" in the log file dd_error_vs_procore_90.txt.
I have searched on Google for this whole message and found some references to this error, but I have done what they said worked for them and it did not fix the problem for me.When I searched for just "MSI returned error code 1638", I got that it cannot install something because it is already installed:"Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel".In Add/Remove Programs I see these two programs:
Microsoft SQL Server Database Publishing Wizard 1.3
Microsoft SQL Server Database Publishing Wizard 1.4
Are these programs/versions what the error is refering to? Am I safe to remove them and depend on the similarly-named item which would be newly installed with Visual Studio 2008 - "Microsoft SQL Publishing Wizard"? I still use SQL Server 2000 and 2005 on my computer, as well as 2008. I had installed VS 2008 on my computer before without this problem and also have VS 2005 and 2010.