Results 1 to 2 of 2

Thread: port scanner

  1. #1
    Engineer is offline Member
    Join Date
    Aug 2010
    Location
    Egypt
    Posts
    34
    Rep Power
    0

    Lightbulb 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:)

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default

    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.

Similar Threads

  1. Replies: 5
    Last Post: 02-17-2010, 07:36 PM
  2. Serial Port
    By radhika in forum New To Java
    Replies: 5
    Last Post: 11-06-2009, 11:40 AM
  3. port already in use...
    By twoHats in forum Networking
    Replies: 6
    Last Post: 05-04-2009, 08:09 AM
  4. serial port
    By musiigedeo in forum Advanced Java
    Replies: 0
    Last Post: 07-23-2007, 05:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •