A comprehensive web-based subnet calculator that provides real-time network calculations with visual representations.
- Calculate network information from IP address and CIDR notation
- Display network address, broadcast address, and usable IP ranges
- Binary representation of IP addresses and subnet masks
- Visual network/host portion visualization
- Real-time calculations with smooth animations
- Responsive design for desktop and mobile devices
- Dark theme interface
- Open
index.html
in your web browser - Enter an IP address with CIDR notation (e.g., 192.168.1.10/24)
- Click "Calculate" or press Enter
- View the calculated network information and visual representations
The calculator accepts IP addresses in CIDR notation:
- Format:
IP_ADDRESS/SUBNET_BITS
- Example:
192.168.1.10/24
- CIDR range: 0-32
The tool provides the following network details:
- Network Address: The network identifier
- Broadcast Address: The broadcast address for the network
- First Usable IP: First host address available
- Last Usable IP: Last host address available
- Subnet Mask: The subnet mask in dotted decimal notation
- Total Hosts: Total number of possible host addresses
- Usable Hosts: Number of usable host addresses (excludes network and broadcast)
- HTML: Structure
- CSS3: Styling with Tailwind CSS framework
- JavaScript (ES6+): Pure JavaScript, no external libraries
- Responsive Design: Mobile-first approach
project/
├── index.html # Main HTML file
├── script.js # JavaScript calculations and UI logic
├── style.css # Custom CSS (minimal, mostly Tailwind)
└── README.md # This file
No installation required. Simply clone or download the files and open index.html
in a web browser.
git clone https://github.com/HarshalBhogawade/DevConncet.git
cd DevConncet
# Open index.html in your browser
The project uses:
- Tailwind CSS via CDN for styling
- Pure JavaScript (no build process required)
- No external dependencies or frameworks
- Shows IP address, subnet mask, and network address in binary format
- Color-coded octets for easy reading
- Interactive bar chart showing network vs host portions
- Dynamic sizing based on CIDR notation
- Color-coded sections (blue for network, green for hosts)
- Input validation for IP addresses and CIDR ranges
- User-friendly error messages
- Real-time feedback
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
Created by HarshalBhogawade
The project includes links to additional learning resources:
- GeeksforGeeks subnetting tutorials
- CIDR notation explanations
For questions or support, please open an issue in the repository.