-
Jul 22nd, 2024, 11:07 AM
#1
Thread Starter
New Member
Pinging/retreiving IP addresses on different subnets
I am working on an application that should search a subnet for a range of connected IP addresses.
I was planning on pinging an IP address range to see who is connected, but i am unclear how to ping to different subnets.
Using the My.Computer.Network.Ping() function i am able to return devices on my current subnet, but how can i search different subnets for connected devices?
-
Jul 22nd, 2024, 11:21 AM
#2
Re: Pinging/retreiving IP addresses on different subnets
If the other subnets are part of your network and you can route to them then you should be able to exactly the same for each subnet.
This does assume routing is properly configured and no firewalls etc. are blocking ping packets.
-
Jul 22nd, 2024, 11:31 AM
#3
Thread Starter
New Member
Re: Pinging/retreiving IP addresses on different subnets
When you say "route to them", does this mean making a routing entry to my PC from my application?
-
Jul 22nd, 2024, 11:39 AM
#4
Re: Pinging/retreiving IP addresses on different subnets
Originally Posted by PlausiblyDamp
If the other subnets are part of your network and you can route to them then you should be able to exactly the same for each subnet.
This does assume routing is properly configured and no firewalls etc. are blocking ping packets.
Your PC is connected to a network
That network knows how to get to other networks
Those networks know how to get to even more networks, etc.
As PlausiblyDamp said it will depend on the configuration of the network devices you pass through to get to the target host.
Use the command prompt and theping command to test.
results from my PC
Code:
Pinging google.com [172.217.5.14] with 32 bytes of data:
Reply from 172.217.5.14: bytes=32 time=23ms TTL=50
Reply from 172.217.5.14: bytes=32 time=23ms TTL=50
Reply from 172.217.5.14: bytes=32 time=23ms TTL=50
Reply from 172.217.5.14: bytes=32 time=23ms TTL=50
Ping statistics for 172.217.5.14:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 23ms, Maximum = 23ms, Average = 23ms
-
Jul 22nd, 2024, 02:56 PM
#5
Re: Pinging/retreiving IP addresses on different subnets
Originally Posted by RadioscoutNews
When you say "route to them", does this mean making a routing entry to my PC from my application?
No, and we already went through this with you in your other thread in Network Programming. If you are still trying to tackle this lack of connectivity problem from a "let's solve this using VB.NET code" standpoint, then you are doing it wrong.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|