- This is a simple tool to check if a given IP Address is valid or not, and if it is a valid one, then it just provides some general information about it. Java will be required to run this program on your system.
- The the tool does not have any dependencies for calculations involving the IP Addresses. Only certain libraries are being used for the frontend generation.
- The methods were developed by me just out of curiosity, to understand how an IP Address could be validated. Hence, there is a possibility of finding errors.
- I had made this tool some time back. If anyone wants to improve the code, then please feel free to contribute.
This is a simple IPv4 (IP Address) Checker. It can do the following:-
- Help find out the details regarding the IP Address (Class, Subnet Mask).
- Analyse the given IP Address and then determine any kinds of errors in the input/format/etc.
This tool was made just for fun and out of curiosity, in my 2nd year (2019) of B.Tech. It was just developed to understand the logic behind the IP address-validity checking in different softwares and applications. There is a possibility that my apporach to validate the IP Address is wrong.
- Given that Java is installed and working on your system, download the zip file and extract it. The program files should be in
IPv4-Validator-main
folder. - Open CMD or Terminal and come to the directory where the program files are present. The directory location would mostly be
C:\Users\username\Downloads\IPv4-Validator-main\IPv4-Validator-main>
. - To run the program, we first need our java compiler (javac) to convert our source code (
IPv4GUI.java
) to bytecode (IPv4GUI.class
). For that, we use the following command:-
javac IPv4GUI.java
- The bytecode is now generated by the java compiler. Now, use the following command to start the tool:-
java IPv4GUI
- You can now see the Graphical-User-Interface of the tool is now available. Try out different values and test if the IP Address is valid or not. Some of the values could be:-
Valid Values
- 192.168.1.4
- 10.10.0.1
- 127.0.0.1
Invalid Values
- 1.1.1.999.
- 673.5.35.abc
- 2A:5D:3B:5E:7B
Here, the input is: 192.168.1.4, which is a valid input.
As the input is valid, the program confirms the same, and identifies the class
and Subnet Mask
or the IPv4.
Here, the input is: 1.1.1.999., which is an invalid input.
For this input, as the IP address is invalid, the tool lists some issues for the input. The back <= Go Back
button can be used to go back, and try giving any other input or trying to correct the current input.