SourceForge Jpcap

net.sourceforge.jpcap.client
Class NetworkFinder

java.lang.Object
  extended by net.sourceforge.jpcap.client.NetworkFinder

public class NetworkFinder
extends Object

Network Finder.

Version:
$Revision: 1.1 $
Author:
William Johnsen and Patrick Charles
Last modified by:
$Author: esmondpitt $
Last modified at:
$Date: 2008/08/21 02:58:12 $ Capture IP packets and extract source and destination addresses.

This class is intended to be run on a 'foreign' wired or wireless network where the user has no idea what IP subnets are in use and is unable to obtain an IP address via DHCP or BOOTP.

Run this program to interrogate the network and find out what subnet is in use.

Before running this class, configure your network adapter using any IP address (e.g. 1.1.1.1) and a wide netmask like 0.0.0.0. Even though the IP address may not be valid on the subnet connected to, it will pick up broadcast packets.

This program will extract from the received packets information about active IPs from which the user can then infer the subnet and valid free IP addresses for his own use.


Constructor Summary
NetworkFinder()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkFinder

public NetworkFinder()
              throws Exception
Throws:
Exception
Method Detail

main

public static void main(String[] args)

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.