473,769 Members | 5,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

About getting IP Address of all Computers which are connected in LAN with my Computer

9 New Member
Help from there, i want the IP Address of all computers which are connected in LAN with me. Its really urgent for me. I using one kind of coding which returns me IP Address of only one computer, but when i enter a Computer Name. The source code of that one is as follows:

*************** *************** *************** *************** *************** *************** **
Expand|Select|Wrap|Line Numbers
  1.  Dim s1, s2 As String 
  2. Dim IPHost As IPHostEntry = Dns.GetHostEntry("Modelling")
  3. s1 = IPHost.HostName.ToString
  4. Dim aliases() As String
  5. aliases = IPHost.Aliases
  6. Dim addr() As IPAddress
  7. addr = IPHost.AddressList
  8. s2 = addr(0).ToString
  9. lblnm.Text = s1 & s2
  10. Dim ep As EndPoint = New IPEndPoint(addr(0), 80)
  11. Dim sock As Socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
  12. sock.Connect(ep)
  13. lblname.Text = s1 & s2 & "Not Connected"
  14. sock.Shutdown(SocketShutdown.Both)
  15.  
So I am requesting to you please help me as early as possible....
May 16 '08 #1
1 1814
Plater
7,872 Recognized Expert Expert
Unless you have a master computer(possib ly your dhcp server) that you can talk to, it's not going to be a fast task.
Pretty sure you will need to ping every address and see if there's a response. Which also doesn't garuntee anything since some computers are setup to not respond to ping requests.
May 16 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
16270
by: Snuffy2 | last post by:
I'm looking to try to get a users MAC and/or NetBIOS name when they visit my website. It somehow can be done, I'm not sure with PHP, but it can be done. Does anyone have any idea how? As an example check out: http://stealthtests.lockdowncorp.com/ On that site, there are tests that will display NetBIOS & MAC addresses.
3
453
by: dotNetDave | last post by:
I just discovered that this: Dim searcher As New Management.ManagementObjectSearcher("SELECT NetConnectionStatus FROM Win32_NetworkAdapter") For Each networkAdapter As Management.ManagementObject In searcher.Get() does not work on Win2K to get the network connection status! Does anyone have some samples on how to do this same thing on Win2K? Thanks!
1
3492
by: Oshadha | last post by:
Hi all I'm developing an application and need to know how to get all computer names which are connected to a network. I found out that system.directorysrvices name space provides a method to get all domain computers, but in my case i need to query for all possible reachable computers in the netowork. this is similar to search fucntion in windows for all computers Thanks a lot Oshadha.
7
2061
by: econobeing | last post by:
a guy in my class made a program in VB6 where he could use the internet because he used the IP address of a site instead of the DNS address. i want to make my own browser now that can do that, but i dont know how to get the IP address of a site. i found a little snippet of code that will get a list of all the IPs of a site, but that doesn't work at my school. it used System.Net.Dns.Resolve() i dont know how he wrote his, but he can use...
8
2707
by: Vanga Sasidhar | last post by:
I have four computers. One computer - Win XP Two computers - Win 98 One computer - Win ME I designed some pages in my computer having Win XP operating system. I installed dot net framework 1.1 and web matrix is used for asp .net code
3
3876
by: Steve | last post by:
Hi all How would i get a list of all Active Computers on a network? All I need are the computer names. Kind Regards, Steve.
3
15736
by: Dan | last post by:
Hi Does anyone know how to get the Mac address of a remote PC, using C#? I believe it's possible by deconstructing the packet received from a ping but I don't know how to do it. TIA Dan
7
5319
by: Chris Fulstow | last post by:
Hi, I need to restirict access at the page level to a range of IP addresses. What's the best approach? I thought of building an HTTP module that could compare the requesting IP with a restricted range, specified in web.config. Any thoughts? Thanks, Chris
17
5566
by: John Salerno | last post by:
Let me see if this question even makes sense...I'm reading Core Python Programming and I jumped ahead to the more specific topics like network programming. I plan to follow along with the example in that chapter and create a socket connection between my desktop and laptop. However, these two computers are already connected on my home network (using the Windows Network Setup Wizard), so I was wondering if this will have any effect on what...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.