Linked Questions

301 votes
8 answers
190k views

Possible Duplicate: Maximum length of the textual representation of an IPv6 address? What would you recommend as the maximum size for a database column storing client IP addresses? I have it set to ...
Tony Eichelberger's user avatar
66 votes
7 answers
62k views

what should be the ideal size for storing IPv4, IPv6 addresses as a string in the MySQL database. should varchar(32) be sufficient?
user339108's user avatar
  • 13.2k
60 votes
6 answers
40k views

What is the best field type and length for storing IP addresses in a MySQL database? What about for IPv6?
Mike's user avatar
  • 603
36 votes
2 answers
31k views

The following program and its output shows that INET_ADDRSTRLEN is defined as 16 and INET6_ADDRSTRLEN is defined as 46. Here is the program. #include <stdio.h> #include <arpa/inet.h> ...
Lone Learner's user avatar
  • 21.2k
37 votes
2 answers
32k views

I need to adjust some database tables in order to accommodate 50+ character long network interface names. I wonder if there is a standard on how long an interface name can be, so I can map it ...
Andrei Matei's user avatar
  • 1,089
18 votes
3 answers
25k views

I'm trying to save a user ip address to my database using Laravel 4. I found the following function which returns a string Request::getClientIp() How would I store this in my model? Just a string or ...
user391986's user avatar
  • 31.2k
17 votes
5 answers
11k views

What's the best practise to store IP's with PHP in MySQL database? There's a function called ip2long - but this is just for IPv4. But what about IPv6? I know a php function that is for IPv6 IP's, but ...
Poru's user avatar
  • 8,410
14 votes
2 answers
20k views

I am working on a project related to networking/compression. One of the machines is Windows Vista, which already has IPv6 configured. When I try ipconfig, I see an address in the following format: ...
pdk's user avatar
  • 535
0 votes
1 answer
1k views

my ip field in the mysql database is VARBINARY(16) // Insert into website table $ip = inet_pton('::1'); // Local ip $data_rec = array( 'ip_address' => $ip, ); ...
CodeCrack's user avatar
  • 5,423
4 votes
1 answer
1k views

I know that this question has been asked quite a few times, but I could not find anywhere a final resolution; so here goes: How do you store an IP (both IPv4 and IPv6) using best-practice, within a ...
Florian Mertens's user avatar
2 votes
1 answer
2k views

I'm trying to save an IP to a database of everyone who visits the home page of my app. I added an IP model/table with a ip:float column and did the following in the index. def index .......... ...
Leahcim's user avatar
  • 42.4k
1 vote
1 answer
2k views

I am creating database for a website and want to store IP Address of user when they are login, what data type should I be using for IP? does it need to support IPv6? Is this script good and does it ...
Mahyar's user avatar
  • 794
2 votes
2 answers
340 views

I have a requirement to make an app in Java which will manage IPv4 (or in future IPv6 too). The users will be managing their range of IP addresses, supernets and subnets (creating/deleting etc) in ...
AhmedRana's user avatar
  • 513
0 votes
1 answer
296 views

I am locally designing a website and I am testing a function within PHP that captures and stored the ip address of the client however I am simply getting a value of 0. The code is: if (!empty($...
dominicansell's user avatar
-1 votes
2 answers
397 views

I have a form to add a comment, everything works fine, except for getting the ip who sent the comment Here is my controller public function sendComment(Request $request) { $articleComment =...
user avatar

15 30 50 per page