brotherpowers / Ipsubnet
Licence: mit
Network calculator for subnet mask and other classless (CIDR) network information. ( GO )
Stars: ✭ 44
Projects that are alternatives of or similar to Ipsubnet
FGRoute
Get your device ip address, router ip or wifi ssid
Stars: ✭ 128 (+190.91%)
Mutual labels: subnet, ip
Iptools
PHP Library for manipulating network addresses (IPv4 and IPv6)
Stars: ✭ 163 (+270.45%)
Mutual labels: ip, subnet
Cuteit
IP obfuscator made to make a malicious ip a bit cuter
Stars: ✭ 475 (+979.55%)
Mutual labels: ip
Hostile
Simple, programmatic `/etc/hosts` manipulation (in node.js)
Stars: ✭ 654 (+1386.36%)
Mutual labels: ip
Flannel
flannel is a network fabric for containers, designed for Kubernetes
Stars: ✭ 6,905 (+15593.18%)
Mutual labels: subnet
Information collection handbook
Handbook of information collection for penetration testing and src
Stars: ✭ 447 (+915.91%)
Mutual labels: ip
Ineter
Fast Java library for working with IP addresses, ranges, and subnets
Stars: ✭ 39 (-11.36%)
Mutual labels: subnet
Netaddr
A network address manipulation library for Python
Stars: ✭ 648 (+1372.73%)
Mutual labels: subnet
Androidnetworktools
Set of useful android network tools
Stars: ✭ 978 (+2122.73%)
Mutual labels: subnet
Nali
An offline tool for querying IP geographic information and CDN provider.一个查询IP地理信息和CDN服务提供商的离线终端工具.
Stars: ✭ 535 (+1115.91%)
Mutual labels: ip
Dpdk Ans
ANS(Accelerated Network Stack) on DPDK, DPDK native TCP/IP stack.
Stars: ✭ 925 (+2002.27%)
Mutual labels: ip
Request Ip
A Node.js module for retrieving a request's IP address on the server.
Stars: ✭ 501 (+1038.64%)
Mutual labels: ip
Cnp3
Computer Networking : Principles, Protocols and Practice (first and second edition, third edition is being written on https://github.com/cnp3/ebook)
Stars: ✭ 471 (+970.45%)
Mutual labels: ip
Api
姬长信API For Docker 一个基于多种编程语言开源免费不限制提供生活常用,出行服务,开发工具,金融服务,通讯服务和公益大数据的平台.
Stars: ✭ 743 (+1588.64%)
Mutual labels: ip
Lua Libcidr Ffi
LuaJIT FFI bindings to libcidr. Provides CIDR calculations for IPv4 and IPv6.
Stars: ✭ 43 (-2.27%)
Mutual labels: ip
IPv4 Subnet Calculator (GO)
Network calculator for subnet mask and other classless (CIDR) network information.
Calculations
- IP address network subnet masks, network and host portions, and provides aggregated reports.
- Subnet mask
- Network portion
- Host portion
- Number of IP addresses in the network
- Number of addressable hosts in the network
- IP address range
- Broadcast address
Provides each data in dotted quads, hexadecimal, and binary formats, as well as array of quads.
Usages
Install
go get -u github.com/brotherpowers/ipsubnet
Get Started
import "github.com/brotherpowers/ipsubnet"
sub := ipsubnet.SubnetCalculator("192.168.112.203", 23)
Get Network Information
sub.GetNumberIPAddresses(); // 512
sub.GetNumberAddressableHosts(); // 510
sub.GetIPAddressRange(); // [ 192.168.112.0, 192.168.113.255 ]
sub.GetNetworkSize(); // 23
sub.GetBroadcastAddress(); // 192.168.113.255
Get IP Address
sub.GetIPAddress(); // 192.168.112.203
sub.GetIPAddressQuads(); // [ 192, 168, 112, 203 ]
sub.GetIPAddressHex(); // C0A870CB
sub.GetIPAddressBinary(); // 11000000101010000111000011001011
Get Subnet Mask
sub.GetSubnetMask(); // 255.255.254.0
sub.GetSubnetMaskQuads(); // [ 255, 255, 254, 0 ]
sub.GetSubnetMaskHex(); // FFFFFE00
sub.GetSubnetMaskBinary(); // 11111111111111111111111000000000
Get Network Portion
sub.GetNetworkPortion(); // 192.168.112.0
sub.GetNetworkPortionQuads(); // [ 192, 168, 112, 0 ]
sub.GetNetworkPortionHex(); // C0A87000
sub.GetNetworkPortionBinary(); // 11000000101010000111000000000000
Get Host Portion
sub.GetHostPortion(); // 0.0.0.203
sub.GetHostPortionQuads(); // [ 0, 0, 0, 203 ]
sub.GetHostPortionHex(); // 000000CB
sub.GetHostPortionBinary(); // 00000000000000000000000011001011
Based On
IPv4 Subnet Calculator ( PHP )
License
IPv4 Subnet Calculator (GO) is licensed under the MIT License.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].