Questions tagged [ipv4]

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

IPv4 is the protocol which has been in use since the early 1980s, described in IETF publication RFC791. It gets gradually replaced with nowadays as the IPv4 addresses become exhausted.

More information at http://en.wikipedia.org/wiki/Ipv4

1045 questions
5
votes
2 answers

how to mount ipv6 address to linux

I am trying to mount a folder from ubuntu system having ip ipv6 as well as ipv4 address root@:/home# ifconfig br0 Link encap:Ethernet HWaddr 16:37:81:2e:ce:e9 inet addr:10.0.3.24 Bcast:10.0.7.255 Mask:255.255.248.0 …
Abhitesh khatri
  • 2,911
  • 3
  • 20
  • 29
5
votes
1 answer

What is the need of separate address structure in sockaddr_in?

This is the internet(IPv4) socket address structure defined in netinet/in.h struct sockaddr_in { uint8_t sin_len; sa_family_t sin_family; in_port_t sin_port; struct in_addr sin_addr;…
sujin
  • 2,813
  • 2
  • 21
  • 33
5
votes
1 answer

10 Second Delay Before Curl POST due to ipv6 (Ubuntu)

NOTE: I don't want to delete any of the history below, but where I thought this was a Heroku issue before, it is not. I think it is an issue with my local machine sending posts via curl and ruby Net::HTTP I'm currently beginning to work on a rails…
Dan Caddigan
  • 1,578
  • 14
  • 25
5
votes
5 answers

Is network byte order pointless under IPv6?

If we use a 32-bit integer to store an IPv4 address, then the byte order of the integer must be considered. However, as there is no built-in 128-bit integer type under almost all platforms, an IPv6 address must be stored into a byte array, so, I…
xmllmx
  • 39,765
  • 26
  • 162
  • 323
5
votes
1 answer

how can I connect to an ipv4 host with ipv6 request?

Although most of the hosts have ipv6 address now, there are still some hosts that only have ipv4. In my LAN, connections using ipv4 will cost money, while connections using ipv6 is free. I want to implement a proxy to convert ipv4 and ipv6 request,…
user1797791
  • 51
  • 1
  • 3
5
votes
4 answers

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 implies, the length of the IP header in 32-bit words Now I'm getting difficulties in calculating IP header length (minimum…
Amit Singh Tomar
  • 8,380
  • 27
  • 120
  • 199
5
votes
2 answers

How do I get IPV6 address with Django?

Django and everything are running on a server. When a user from his/her local machine accesses the application, I need to save the IPV4 and IPV6 from this local machine into a form. This is the view I'm using to save data: def…
user1106551
4
votes
1 answer

Check whether an IP address is in a network

I am looking for a function to determine whether a given IPv4 address is in a given network. It will be similar to this; however, I do not want to install a complete framework or reinvent the wheel if it is not necessary. The idea would be similar…
jinanwow
  • 489
  • 2
  • 10
  • 21
4
votes
1 answer

dns.gethostbyname()

i've been searching online about the Dns gethostbyname change to gethostentry, and modify the code accordingly, but why still not display the normal ipv4 address? here my code: string GetHostIP() { String myHostName =…
jae33
  • 85
  • 1
  • 2
  • 9
4
votes
7 answers

how to get the next ip address from a given ip in java?

Folks, Am looking for a Java code snippet, which gives the next address from the given IP. so getNextIPV4Address("10.1.1.1") returns "10.1.1.2". String crunching can be done but might end up messy. Is there a much formalized way for doing…
Rajan
  • 626
  • 3
  • 8
  • 18
4
votes
3 answers

Regular expression to validate InetSocketAddresses (ipv4/v6 + port addresses)

I am looking for tested regular expressions for both ipv4 and ipv6 InetSocketAddress (i.e., ip address + port number). I am not interested in validating hostnames. It can be two regex (one for ipv4, one for ipv6) or one combined regex. Does anyone…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
4
votes
1 answer

Find IP (IPv4 and IPv6) address between range

Question: Is it possible to search for values that are in between (i.e., BETWEEN, greater than, and less than type math operators) each other when the data is stored in a VARBINARY data type? Problem: I have a list of IP addresses (both IPv4 and…
J Weezy
  • 3,507
  • 3
  • 32
  • 88
4
votes
2 answers

python zeroconf show IPv4 addresses

I'm trying to figure out how to scan the network for devices which are published by avahi. #!/usr/bin/python3 from zeroconf import ServiceBrowser, Zeroconf from time import sleep class MyListener: def remove_service(self, zeroconf, type,…
4
votes
2 answers

How to open a socket on a specific interface and receive both IPv4 and IPv6 traffic

With IPv4 I can bind() to a specific address to select the interface that will be used to receive the packets (and in some case, also to send, but that's not the point). On a dual stack IPv6/IPV4 machine I have this problem: I can create a 6 socket…
garph0
  • 1,700
  • 1
  • 13
  • 16
4
votes
0 answers

different behaviour of ICMP in IPv4 and IPv6

I'm using boost asio icmp sockets to send and receive ICMP packets. My code is based on the boost example: http://www.boost.org/doc/libs/1_51_0/doc/html/boost_asio/example/icmp/ping.cpp I tried to do the same in IPv6. I can send ICMP messages…
Christi258
  • 51
  • 2