IP address character limit

my client in his template is using <?php comment_author_IP(); ?> to display IP’s of comment authors. Recently he came to me with idea of limiting whole number to several characters. Final result should be something simillar to: 192.168… How can i achieve it? I’ve tried with jquery but without success. It looked like it was … Read more

Maximum length of the textual representation of an IPv6 address?

I want to store the data returned by $_SERVER[“REMOTE_ADDR”] in PHP into a DB field, pretty simple task, really. The problem is that I can’t find any proper information about the maximum length of the textual representation of an IPv6 address, which is what a webserver provides through $_SERVER[“REMOTE_ADDR”]. I’m not interested in converting the … Read more