ipv4 Questions

3

Solved

Is it possible to have a Socket that listens and accepts both IPv6 and IPv4 clients? I used a IPv6 socket in C# hoping that it would automatically be backwards compatible but IPv4 clients cause an ...
Trackless asked 17/8, 2009 at 2:37

6

Solved

I have application that uses IPv4 addresses (it stores them as long), so it only understands IPv4 addresses. Is it possible to convert IPv6 address to IPv4 with Java?
Maniac asked 7/5, 2010 at 6:29

4

Solved

I have a script which sends a request to another server but problem is that IPv6 does not supported so if I send IPv6 then give error so i need this one of two: Get IPv4 address all time or Get bo...
Bedspread asked 9/7, 2018 at 11:58

8

How to force the requests library to use a specific internet protocol version for a get request? Or can this be achieved better with another method in Python? I could but I do not want to use curl…...
Papoose asked 9/10, 2015 at 20:36

47

Solved

I've been trying to get an efficient regex for IPv4 validation, but without much luck. It seemed at one point I had had it with (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?(\.|$)){4}, but it produces some...
Azerbaijan asked 12/3, 2011 at 17:27

4

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 }; va...
Intolerance asked 23/5, 2016 at 7:26

11

Solved

How can I obtain the (IPv4) addresses for all network interfaces using only proc? After some extensive investigation I've discovered the following: ifconfig makes use of SIOCGIFADDR, which requir...
Unlock asked 12/3, 2011 at 7:42

7

I'm trying to ping another computer that is connected to the same Wi-Fi network. Pinging to anything else (localhost, website, etc.) works fine. But when I try to ping to the local ip address of my...
Elanorelapid asked 19/3, 2019 at 2:55

9

Solved

I'm trying to get the ip address of my local PC, and one one of my other PCs it gets the v4 address fine, but on this one the code: Dns.GetHostEntry(Dns.GetHostName).AddressList(0).ToString() re...
Haywire asked 29/10, 2009 at 8:18

5

Solved

I'm currently working on a UDP socket application and I need to build in support so that IPV4 and IPV6 connections can send packets to a server. I was hoping that someone could help me out and po...
Linneman asked 24/10, 2009 at 15:15

13

Solved

I've read a number of articles about UDP packet sizes but have been unable to come to a conclusion on whats correct. A number of services restrict the largest UDP packet to 512 bytes (like dns) G...
Delamare asked 8/7, 2009 at 15:39

22

I'm looking for a function that will convert a standard IPv4 address into an Integer. Bonus points available for a function that will do the opposite. Solution should be in C#.
Howells asked 20/1, 2009 at 15:25

2

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)). "."...
Involucre asked 15/8, 2017 at 22:53

4

Solved

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 d...
Kayceekaye asked 26/7, 2012 at 11:20

8

Solved

I've got some code here that works great on IPv4 machines, but on our build server (an IPv6) it fails. In a nutshell: IPHostEntry ipHostEntry = Dns.GetHostEntry(string.Empty); The documentation ...
Ketron asked 29/6, 2009 at 17:38

2

Solved

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<List> getIpAdd...
Padnag asked 16/1, 2017 at 18:16

2

Solved

I have a question with variable : $_SERVER['REMOTE_ADDR']. I wish he recovers ONLY IP addresses in IPv4 format . It extracted me a few times in IPv6 format . How to do?
Monophony asked 5/7, 2015 at 17:44

5

Solved

I use my computer to communicate with a piece of hardware via ethernet. To communicate with this device I set my ip to 192 168 0 11, subnet mask to 255 255 255 0, and default gateway to 192 168 0 1...
Arise asked 28/9, 2011 at 9:7

2

Request object of NODEJS provides this method req.connection.remoteAddres to get the client's IP Address, but it gives the address in IPV6 format,how do I convert it into IPV4 format which is more ...
Gamin asked 2/11, 2017 at 9:17

8

Solved

I have checked in Stack Overflow question API for configuring static IP addresses in an Android application. It works until Android 2.3. However, there is no luck on a higher API level. For exampl...
Kenogenesis asked 23/4, 2012 at 10:4

4

I need to verify if a string is a valid IPv4 or IPv6 address in a Batch script, but apparently Batch doesn't have an easy way to parse an IP address. How can I do this in Batch without using extern...
Me asked 13/2, 2021 at 12:13

5

Solved

Does anyone have a good (preferably tested) regex for accepting only a valid DNS hostname, IPv4, or IPv6 address?
Cozmo asked 24/6, 2010 at 23:17

4

Solved

I'm working on a project in .net , that can connect to different machines by an IP address that the user inputs. I'm trying to validate the inputted IP Address using a regular expression. I've sear...
Shouse asked 9/2, 2012 at 10:5

2

Solved

I’ve noticed that Linux and *BSD systems allow user to skip octets when using dot-decimal notation. Here are some examples: $ ping 10.1 PING 10.1 (10.0.0.1) 56(84) bytes of data. $ ping 10.15.1 PI...
Dessiedessma asked 13/4, 2012 at 0:39

3

I am working on a C/C++ networking project that it should be able to both use the IPv4 and IPv6 networking stacks. The project works only on Linux. So, I tried to find an efficient way to store the...
Reikoreilly asked 23/10, 2014 at 15:21

© 2022 - 2024 — McMap. All rights reserved.