Skip to content

moocf/ip-classify.cxx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Classify an IP address, get network address, and related information (CLI).

Run this on: OnlineGDB


$ clang main.cxx
$ ./a.out

# Enter IP address: 192.168.1.20
# IP Address: 192.168.1.20
# Class: C
# Enter subnet mask: 255.255.255.0
# Subnet Mask: 255.255.255.0
# Network Address:   192.168.1.0
# Broadcast Address: 192.168.1.255
# First IP Address:  192.168.1.1
# Last IP Address:   192.168.1.254
# Enter second IP address: 192.168.2.20
# Second IP Address: 192.168.2.20
# IP addresses are in different networks.
# 192.168.1.20 is private.
# 192.168.2.20 is private.



ORG

About

Classify an IP address, get network address, and related information (CLI).

Resources

License

Stars

Watchers

Forks

Languages