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
6 answers

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 address or not. Code Snippet is:- String ipv4addr="200"; if(IPAddressUtil.isIPv4LiteralAddress(ipv4addr)) { …
AngelsandDemons
  • 2,823
  • 13
  • 47
  • 70
5
votes
2 answers

Is there a C/C++ API to the route information on Windows?

Is there a windows or cygwin C/C++ API to collect information provided by the route command on Windows? I'm specifically interested in the route metrics. Here's an example of what route outputs, the IPs have been changed to protect the innocent. $…
mfisch
  • 979
  • 9
  • 15
5
votes
2 answers

How to resolve Ipv4 and Ipv6 from ".local" using mDNS in Android

I am trying to resolve IPv4 and IpV6 from ".local" using multicast DNS and I tried https://github.com/posicks/mdnsjava but it unable to resolve required ipv4/ipv6. Alternatively, I found one app which work for me but have no idea how it works. App…
Tanmay Ranjan
  • 318
  • 2
  • 8
5
votes
4 answers

Is there a standard .NET decoder for ipv4 and ipv6 addresses?

I'd like to write a fairly simple client-server network app. I only use a pure IPv4 network, but it would be nice to future-proof my code. I'll probably be using TcpListener/TcpClient, because preliminary investigation of WCF reveals it to be overly…
Qwertie
  • 16,354
  • 20
  • 105
  • 148
5
votes
1 answer

IP Address Binary to Human Readable

I have IP addresses stored in a DB using a command like this: cast(INET6_ATON(trim(:ipbinary)) as binary(16))) my column is: varbinary(16) I've tried using the mysql function INET6_NTOA to convert it back to the IPv4 format but haven't had any…
user3783243
  • 5,368
  • 5
  • 22
  • 41
5
votes
4 answers

Will IPv6 help form-spammers?

A large (the major) part of developing a web application is to make it abuse-proof, more specifically spammer-proof. I've just noticed that today's spambots manage to request a form, fill it in, submit it, and re-submit it (e.g. in case the CMS asks…
augustin
  • 14,373
  • 13
  • 66
  • 79
5
votes
2 answers

Converting IPv6 to IPv4 address in PHP

I need to convert IPv6 addresses to IPv4 addresses. To do this, I used code from pedmillon's answer to a related question: $ipv6 = $_SERVER['REMOTE_ADDR']; $ipv4 = hexdec(substr($ipv6, 0, 2)). "." . hexdec(substr($ipv6, 2, 2)). "." .…
user6224087
5
votes
1 answer

Why are there so many loopback addresses?

I saw there are 16.581.375 loopback addresses, but nearly every program only uses 127.0.0.1. So why are there so many unused addresses. IPv4 has many address problems, so why are people wasting so many ip addresses? Is there a reakson for it?
Florian
  • 271
  • 3
  • 7
5
votes
2 answers

How would I get only IPv4 addresses

I have the following code which is supposed to get only the IPv4 addresses of all active interfaces, but it still returns an IPv6 address on some computers. public static List getIpAddress() { List ip = new ArrayList<>(); …
Levi Muniz
  • 389
  • 3
  • 16
5
votes
0 answers

Setting up IPv6 connection on iPhone from Mac book pro (El Capitan)

Apple rejected my app since it failed to do few functionalities on IPv6 connections. I have to test the app. I have a broadband connection of IPv4. I created a NAT64 connection in Network Sharing on my Mac book. I connected my device wirelessly to…
Sanjeev S
  • 149
  • 3
5
votes
3 answers

How to force ipv6 or ipv4 for HttpWebRequest or WebRequest C#

Coming from node.js I can do this to tell node.js to make the request using ipv6 vs ipv4 var http = require("http"); var options = { hostname: "google.com", family: 4, // set to 6 for ipv6 }; var req = http.request(options, function(res) { ..…
gman
  • 100,619
  • 31
  • 269
  • 393
5
votes
3 answers

IPv6 to IPv4 inter-conversion in C#

I have a list of IP's in IPv4 format that i have collected from previous HttpRequest objects that my web-server received. I have a java applet which gives IP addresses in Ipv6 format(java applet returns a bunch of data along with the IP address). I…
Vinay B R
  • 8,089
  • 2
  • 30
  • 45
5
votes
2 answers

Making a home server reachable (IPv4, IPv6, DS-Lite)

I am planning to ship a "home server" type device to customers, that communicates with their (Android or iPhone) smart phone. The problem is that, depending on their internet service provider, the customer has no outside-reachable IPv4 address…
knipknap
  • 5,934
  • 7
  • 39
  • 43
5
votes
2 answers

How do I compare IP addresses in PHP as binary strings?

I am currently working with IPv4 and IPv6 addresses in a PHP based project, and I need to be able to compare two IPs to determine which one is a higher number. For example, that 192.168.1.9 is greater than 192.168.1.1. In order to do this, I…
Seth McCauley
  • 983
  • 11
  • 24
5
votes
2 answers

How do I manually transform an IPv4 address into an IPv6 address?

I would like to know if there is any manual method in transforming an IPv4 address to an IPv6 address without the use of an conversion calculator or tool. For example: I have an IPv4 address and it is given as: 129.130.100.11 and when it is…
blobs
  • 88
  • 1
  • 8