Building Java Client/Server Applications with TCP. Part 3
Building Java Client/Server Applications with TCP. Part 3
Time for our third installment in the series. This time we look at the port scanner program.
10 бер 2020
1114
Інші статті
How to incrementally migrate the data from RDBMS to Hadoop using Sqoop Incremental Last Modified technique?
How to implement Slowly Changing Dimensions(SCD) Type 2 in Spark?
How to incrementally migrate the data from RDBMS to Hadoop using Sqoop Incremental Append technique?
Why MongoDB don't fetch all the matching documents for the query fired
How to solve the issue of full disk utilization in HDFS Namenode
Can We Use HDFS as Back-up Storage?
How to do Indexing in MongoDB with Elastic Search? Part 1
How to do Indexing in MongoDB with Elastic Search? Part 2
How to store data on browser using NoSQL IndexedDB?
How to Apply MBTI in HR: Motivation for every day. Groups of People & their Motivations
Time for our third installment in the series. This time we look at the port scanner program.
In order to use this program, you have to pass 3 arguments to it: the server, the start port and the end port. This is the result of running the program with the arguments “www.google.com 70 90”.
This shows that, on www.google.com, port 80 is open – it is the HTTP port waiting for connections.
Catalin Tudose
Java and Web Technologies Expert
3. The port scanner program
We’ll present a port scanner program that shows which ports are open on your computer, on someone else's computer, or on an Internet server. In order to achieve this, the program browses through a given range of ports, creates a socket and tries to connect to the server on each port.
In order to use this program, you have to pass 3 arguments to it: the server, the start port and the end port. This is the result of running the program with the arguments “www.google.com 70 90”.
This shows that, on www.google.com, port 80 is open – it is the HTTP port waiting for connections.
Interested in Java? Check out our trainings.
Catalin Tudose
Java and Web Technologies Expert