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
-1
votes
1 answer

Private IP regex not working in Java

I have tried to make this example work in Java: Private IP Address Identifier in Regular Expression I want to check if a IP is a private one, except 127.x.x.x But I'm going to get crazy, What is wrong in this code?: private static final Pattern…
-1
votes
2 answers

FTP which IP to use?

I'm using this Code: ftpClient.connect(InetAddress.getByName(10.0.0.100)); ftpClient.login(user, password); ftpClient.changeWorkingDirectory(serverRoad); ftpClient.setFileType(FTP.BINARY_FILE_TYPE); BufferedInputStream buffIn=null; buffIn=new…
Ribisl
  • 149
  • 1
  • 10
-1
votes
2 answers

Are there C functions to convert a sockaddr_in to a sockaddr_in6 structure?

I want to save data in a database using a canonicalized IP address. The software, at this point, may get IPv4 or IPv6 addresses. I want to canonicalize by converting all addresses to an IPv6 address. I know of inet_pton() to convert the string to a…
Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156
-1
votes
2 answers

Rails: Convert last n quartet's of IPv4 address to wildcard

I would like to be able to do irb(main):054:0> ip = "192.168.1.255" => "192.168.1.255" irb(main):055:0> ip.sub(/\d+$/, '*') => "192.168.1.*" for the last n quartets. e.g. "192.168.1.255" => "192.168.*.*" etc.
gr8scott06
  • 903
  • 1
  • 11
  • 20
-1
votes
1 answer

Get IPv4 address of client

I have an android app that makes a simple REST call to my backend server (Google App Engine [GAE]). On my GAE, I am trying to extract the IPv4 address of the connection and I always get a IPv6 address. I'm using this to extract the ipAddress. In…
-1
votes
1 answer

Java PHP Application calculate or get IPv6 from IPv4 if available

i came up with a solution to create a network "like p2p" in java. i use a webserver as bridge for the connections. each client has a java server and a java client which are able to communicate through my ip-database on my php server. my problem is,…
M Brain
  • 1
  • 1
-1
votes
1 answer

Size of IPv4 Pools assigned to RIRs

I downloaded the latest delegated File from the Ripe RIR. delegated file ripe There are lines…
John Smithv1
  • 673
  • 5
  • 14
  • 33
-1
votes
1 answer

How to transition from IPv4 to IPv6 for a domain?

I currently have a domain which has the following DNS record: A xxx.xxx.xxx.xxx (ipv4) And my nginx vhost looks like this: server { listen 80; server_name app.com; } How can I use an IPv6 ip address that my host provides instead of the…
Hopstream
  • 6,391
  • 11
  • 50
  • 81
-1
votes
4 answers

problem with IPv4 protocol

using IPv4 protocol around 4 billion computers can be connected.(including classA, class B, class C networks). What should be done if the number exceeds beyond 4 billion? what are the consequences of such a situation?
Madhan
  • 2,609
  • 7
  • 26
  • 22
-1
votes
2 answers

Integer to ipv4 with winsock.h

I have a question concerning the use of union library winsock.h to convert the numbers to ipv4 address how to write? #ifdef obsolete union { struct { u_char s_b1,s_b2,s_b3,s_b4; } S_un_b; struct { u_short…
lukassz
  • 3,135
  • 7
  • 32
  • 72
-1
votes
2 answers

BitTorrent IPv4 - IPv6 interaction

My ISP only provides me with an IP4 adress, but Deluge (Torrent-Client) lists IP6 adresses in the peers tab. How does this work? I thought to not be able to communicate with IP6 devices.
-1
votes
2 answers

IPv4 header frame

I need to sort out something about the IPv4 header. For example the following frame with an Ethernet-II frame with an IPv4 packet starting at the fifteenth byte. 0000: 08 00 20 7c 94 1c 00 00 - 39 51 90 37 08 00 45 00 0010: 00 3e 36 00 00 00 80 11 -…
user1761911
  • 25
  • 1
  • 3
-1
votes
1 answer

Current IPV4 Address used in Internet are classless or classfull addresses?

Well I had one doubt when I read it somewhere IPV4 Class A,B,C address are used for IP network ( public IP network) Then their is a concept of classless addressing So what do we use on the Internet today Classful Addressing or Classless…
Vij P
  • 57
  • 5
-1
votes
1 answer

access ipv6 website over ipv4 network

If the servers of a website internally use the IPv6 protocol, how can a regular IPv4 computer access the website? I'm curious about which protocols etc. are in place to make this happen?
user485659
  • 689
  • 4
  • 12
  • 20
-1
votes
3 answers

Decoding an IP datagram dump manually

I was practicing questions for this topic and I came across this question: Look at the 40byte dump of an IP packet containing a TCP segment below (in hexadecimal). 45 20 03 c5 78 06 00 00 34 06 ca 1f d1 55 ad 71 c0 a8 01 7e 00 50 9a 03 3e 64 e5 58…
stud91
  • 1,854
  • 6
  • 31
  • 56