![Logo](/Jozmon/ip-dec2bin-group/raw/main/images/logo.png)
Ip-dec2bin is a cross-platform open-source interactive tool
to convert IP from decimal and from binary written in C.
Report Bug
·
Request Feature
Table of Contents
It's a simple converter that takes IP in binary or decimal form and converters it.
To get a local copy up and running follow these simple steps.
You will need:
- C preprocessor
- C compiler
-
To install cpp preprocessor
apt-get install cpp
-
To install gcc compiler
apt-get install gcc
- Download dev-C++ from here
- Install dev-C++ by executing the downloaded executable
- Navigate using your browser here
- Click on code then click again on download zip
- Extract the zip
- Open dev-C++ click on file and open
- Navigate and open file ip-dec2bin.cpp
- Open menu Execute and click on compile
- Finished you will now have an executable file!
- Clone the repo
git clone https://github.com/Jozmon/ip-dec2bin-private
- Compile
gcc ip-dec2bin.cpp -o ip-dec2bin
After the compilation is completed to execute it
use one of the following instructions depending on your os:
Open your terminal emulator and type
```sh ./ip-bin2dec ```
Open cmd and write:
.\ip-bin2dec
or by double clicking on the ip-dec2bin from your explorer.exe
To use select one of two options:
1 to convert IP address from decimal to binary
2 to convert IP address from binary to decimal
Write the number of the option to the terminal and press enter:
When selecting option 1 provide an IP address in decimal form
like this 192.168.1.12 and press enter
Then the IP address will be printed in binary form
After that you will brought back to the main menu.
You can do another operation or exit
by selecting the options using the numbers.
When selecting option 2 provide an ip address in binary form
like this 1001.10.11.1111 and press enter
Then the IP address will be printed in decimal form
After that you will brought back to the main menu.
You can do another operation or exit
by selecting the options using the numbers.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GPL License. See LICENSE.txt
for more information.
Giannis Kekes - [email protected]
Project Link: https://github.com/Jozmon/ip-dec2bin-private