Results 1 to 2 of 2
Thread: port scanner
- 09-04-2010, 10:39 AM #1
Member
- Join Date
- Aug 2010
- Location
- Egypt
- Posts
- 34
- Rep Power
- 0
port scanner
Hi,:)
i want to make port scannerin java
that that indicate open ports on computer
the program will make connect at all port
if it connection .............................sueccssful
if not .......................busy:)
how can i make this program???
and what can i use in it?
thank you:)
- 09-04-2010, 03:49 PM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
Hi,
To scan whether a port in a host is opened just create an instance of java.net.Socket object by passing the hostname and the port number to check. If no exception is thrown it means the port is open.Website: Learn Java by Examples
Similar Threads
-
How to get number of available COM Port and how to list them?
By newbiejava in forum New To JavaReplies: 5Last Post: 02-17-2010, 06:36 PM -
Serial Port
By radhika in forum New To JavaReplies: 5Last Post: 11-06-2009, 10:40 AM -
port already in use...
By twoHats in forum NetworkingReplies: 6Last Post: 05-04-2009, 07:09 AM -
serial port
By musiigedeo in forum Advanced JavaReplies: 0Last Post: 07-23-2007, 04:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks