Top "Ipv4" questions

IPv4 is the "old style" IP protocol currently used in most circumstances.

How do I calculate IP-header length?

I want to calculate IP-header length with following statement: Header Length is a four-bit field that tells, as the name …

networking ip ipv4
getaddrinfo and IPv6

I'm trying to understand what the getaddrinfo function returns : #include <stdlib.h> #include <sys/types.h> #…

c network-programming ipv6 ipv4 getaddrinfo
Geolocation with IPv6?

I'm working on an IP geolocation library that uses the first three octets of an IPv4 address to determine a …

geolocation ipv6 ipv4
Java regex for accepting a valid hostname,IPv4, or IPv6 address

Anyone have a good (preferably tested) regex for accepting only a valid DNS hostname, IPv4 or IPv6 address?

java regex ipv6 hostname ipv4
Get destination address of a received UDP packet

Upon receiving a UDP packet, I need to respond to the sender with the address he used to send the …

linux networking udp ipv4
Node.js dns.resolve() vs dns.lookup()

I need to lookup a given host to its corresponding IP in Node.js. There seems to be two native …

javascript node.js dns ipv6 ipv4
List of possible internal socket statuses from /proc

I would like to know the possible values of st column in /proc/net/tcp. I think the st column …

linux sockets ipv6 ipv4 procfs
Storing IP address in MySQL database (IPv4 AND IPv6)

Ok, now I'm aware that similar questions have probably been asked a million times but I'm a real novice at …

php mysql ip ipv6 ipv4
Check valid IPv4 Address in Java

I am using the sun.net.util.IPAddressUtil package to check whether the string contains a valid IPv4 and IPv6 …

java string ipv6 ipv4
Java check if IPv4 or IPv6 address is in a given subnet

How can I check if an IP address is in a given subnet? I was able to do this by …

java ipv6 ipv4 subnet