A simple Port Scanner desktop application built using Java and JavaFX.
The application allows the user to scan common TCP ports on a target IP address and display whether each port is OPEN or CLOSED.
The idea of this project is to demonstrate the Client/Server networking concept.
The scanner (client) attempts to connect to specific ports on a remote host (server).
If the connection succeeds, the port is considered open; otherwise, it is closed.
This project focuses on:
- Understanding TCP socket connections
- Client-side networking
- Multithreading in Java
- GUI development using JavaFX
- Java (JDK 21 / 25)
- JavaFX
- FXML
- Sockets (java.net.Socket)
- IntelliJ IDEA
- Simple and clean GUI
- Input field to enter target IP address
- Scan common ports (21, 22, 80, 443, 3389)
- Displays scan results in real-time
- Uses multithreading to avoid freezing the GUI
- TextField for IP address
- Scan button
- Output area showing port status
- User enters an IP address.
- The application tries to create a TCP socket connection for each port.
- If the connection succeeds → Port is OPEN
- If it fails → Port is CLOSED
- Results are displayed in the output area.
- Make sure JavaFX SDK is installed.
- Open the project in IntelliJ IDEA.
- Add JavaFX VM options: