rahulrajdixit / IPv4-Validator

A small GUI based IPv4-address validator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IPv4-Validator

Please Note

  • 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.

Introduction

This is a simple IPv4 (IP Address) Checker. It can do the following:-

  1. Help find out the details regarding the IP Address (Class, Subnet Mask).
  2. 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.


How to use it?

  1. 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.
  2. 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> .
  3. 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
  1. The bytecode is now generated by the java compiler. Now, use the following command to start the tool:-
java IPv4GUI
  1. 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

Outputs

Example 1

Here, the input is: 192.168.1.4, which is a valid input.

frame1

As the input is valid, the program confirms the same, and identifies the class and Subnet Mask or the IPv4.

frame2

Example 2

Here, the input is: 1.1.1.999., which is an invalid input.

frame3

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.

frame4

About

A small GUI based IPv4-address validator.


Languages

Language:Java 100.0%