• Resolved Grant Hoover

    (@ghoover)


    Greetings! Thanks for a simple, very useful plugin! Is there a way to force the plugin to display only the IPv4 address or both the IPv4 and Iv6 addresses when an ISP has assigned both IPv4 and IPv6 addresses to a connection? For example, our ISP assigns both types of addresses, and when I load a page I’ve constructed using your plugin, it displays the IPv6 address only, not the IPv4 address. I’d like a way to display only the IPv4 address or both, but not only the IPv6 address. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chris Dennis

    (@chrisdennis)

    Hi. Thanks for your question, but the answer is “No — it doesn’t work like that.”

    The web server only sees the address that you’re currently connecting to the browser from, by referring to PHP’s $_SERVER[REMOTE_SERVER] variable. That will only be either IPv4 or IPv6, not both (as far as I know), even if you currently have two connections to the internet.

    Thread Starter Grant Hoover

    (@ghoover)

    Thank you for your reply. Your explanation makes perfect sense.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IPv4 address’ is closed to new replies.