Skip to content

Jozmon/ip-dec2bin-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

IP Dec2Bin

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
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

About The Project

Product Name Screen Shot

It's a simple converter that takes IP in binary or decimal form and converters it.

(back to top)

Getting Started

To get a local copy up and running follow these simple steps.

Linux Prerequisites

You will need:

  1. C preprocessor
  2. C compiler
  • To install cpp preprocessor

    apt-get install cpp
  • To install gcc compiler

    apt-get install gcc

Windows Prerequisites

  1. Download dev-C++ from here
  2. Install dev-C++ by executing the downloaded executable

Compiling The Code

Windows Compilation

  1. Navigate using your browser here
  2. Click on code then click again on download zip
  3. Extract the zip
  4. Open dev-C++ click on file and open
  5. Navigate and open file ip-dec2bin.cpp
  6. Open menu Execute and click on compile
  7. Finished you will now have an executable file!

Linux Compilation

  1. Clone the repo
    git clone https://github.com/Jozmon/ip-dec2bin-private
  2. Compile
    gcc ip-dec2bin.cpp -o ip-dec2bin

(back to top)

Execution

After the compilation is completed to execute it
use one of the following instructions depending on your os:

Run on linux


Open your terminal emulator and type
```sh ./ip-bin2dec ```

Run on windows

Open cmd and write:

.\ip-bin2dec

or by double clicking on the ip-dec2bin from your explorer.exe

Usage

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:

Option 1 Decimal To Binary

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.

Option 2 binary to decimal

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.


(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the GPL License. See LICENSE.txt for more information.

(back to top)

Contact

Giannis Kekes - [email protected]

Project Link: https://github.com/Jozmon/ip-dec2bin-private

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages