Title: Dual-stack client
Last modified: March 21, 2022

---

# Dual-stack client

 *  [4x0v7](https://wordpress.org/support/users/4x0v7/)
 * (@4x0v7)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/)
 * Hi there!
    How does this plugin function when the connecting client has both 
   an IPv4 and an IPv6 address? It seems if the IPv4 address is added, but the client
   browser is connecting with IPv6 (that has not been added), they are not logged
   in. What is the expected functionality here?
 * I have a paying customer who is having an inconsistent experience with the plugin
   sometimes working, but other times not working.
 * Thanks in advance!

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [brijeshk89](https://wordpress.org/support/users/brijeshk89/)
 * (@brijeshk89)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15478276)
 * Hi,
 * Sorry for the inconvenience caused.
 * The IP is passed by web server e.g. Apache/NGINX to PHP and IP Based Login uses
   the IP received in $_SERVER
 * Are you using any proxy like Cloudflare on the website ?
 * If yes please go to IP Based Login Settings page in WordPress admin panel, there
   you will find IP Detection Preference where you can check the IP detected by 
   the plugin and check if it is correct or not. If you are using Cloudflare in 
   the dropdown please choose Cloudflare and click on the “Save” button.
 * Cloudflare generally returns IPv6
 * Let me know if you still face the issue.
 *  Thread Starter [4x0v7](https://wordpress.org/support/users/4x0v7/)
 * (@4x0v7)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15479357)
 * I don’t believe there is any proxy being used on the website, it’s hosted on 
   the pantheon.io PaaS.
 * As a simple test, if I disable IPv6 protocol in Windows and connect, everything
   works as expected and I am logged in.
    If I enable IPv6 again, I am not logged
   in. If I login manually and check, the plugin is now detecting my IPv6 address.
   If I check a site like [https://test-ipv6.com](https://test-ipv6.com) I can see
   both my IPv4 and IPv6.
 * So even though I have my IPv4 address added, I am connected with IPv6, presumably
   because of Happy Eyeballs, and login does not work.
 * You should be able to reproduce this issue, if you are also connecting from a
   network that has both an IPv4 and IPv6 address.
 * Thanks for your assistance with this!
 *  Thread Starter [4x0v7](https://wordpress.org/support/users/4x0v7/)
 * (@4x0v7)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15479478)
 * I just tried adding an IPv6 range and using different browsers and the expereince
   is inconsistent. Trying over and over again to connect eventually works after
   7-50 attempts, then I’m logged in.
    So this issue I don’t believe is with the
   network, but with how the plugin is handling the IP that it got, which seems 
   to be up to the users browsers and Happy Eyeballs
 *  Thread Starter [4x0v7](https://wordpress.org/support/users/4x0v7/)
 * (@4x0v7)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15479503)
 * Also, if I login with username/password when the plugin doesn’t work, it then
   says “Logged in by IP Based Login” and shows the IPv6 that is already added, 
   despite the fact the plugin failed to log me in, and I just used my username/
   password.
 *  Plugin Author [brijeshk89](https://wordpress.org/support/users/brijeshk89/)
 * (@brijeshk89)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15479582)
 * Hi,
 * Can you share a screenshot of the IPv6 added in IP Based Login and the screenshot
   of the page where you see the IPv6 detected by IP Based Login ?
 *  Thread Starter [4x0v7](https://wordpress.org/support/users/4x0v7/)
 * (@4x0v7)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15481825)
 * Hi there
    Here are 2 screenshots
 * 1: [https://send.bitwarden.com/#2b1wl49R4EiFOK5gAC0-2A/l8bZsxU9EdS-9fYC0io-Ew](https://send.bitwarden.com/#2b1wl49R4EiFOK5gAC0-2A/l8bZsxU9EdS-9fYC0io-Ew)
   
   2: [https://send.bitwarden.com/#tJVuJncHrUmbva5gAC48bA/DTO2fpW9Tz3CXhCOwGrqIg](https://send.bitwarden.com/#tJVuJncHrUmbva5gAC48bA/DTO2fpW9Tz3CXhCOwGrqIg)
 * The first one shows that I was apparently logged in by your plugin (but I was
   not, this was taken after entering username/password)
 * The second one shows that I have added the entire /64 CIDR range to the IP Ranges
   area, which should be working
 * I have obfuscated the 3rd and 4th octets for privacy reasons, but I can tell 
   you that they match.
    The last 4 octets are the rfc4941 temporary address as 
   assigned by Windows
    -  This reply was modified 4 years ago by [4x0v7](https://wordpress.org/support/users/4x0v7/).
 *  Thread Starter [4x0v7](https://wordpress.org/support/users/4x0v7/)
 * (@4x0v7)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15491518)
 * [@brijeshk89](https://wordpress.org/support/users/brijeshk89/) Hey there just
   following up, is there any update on this issue?
 *  Plugin Author [brijeshk89](https://wordpress.org/support/users/brijeshk89/)
 * (@brijeshk89)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15494507)
 * Sorry for the delay.
 * I do not have access to a IPv6 based ISP. I am trying to arrange the same so 
   I can test the issue.
 *  Thread Starter [4x0v7](https://wordpress.org/support/users/4x0v7/)
 * (@4x0v7)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15504608)
 * [@brijeshk89](https://wordpress.org/support/users/brijeshk89/) Hey there following
   up again, did you manage to get your IPv6 access sorted?
 *  [loginizer](https://wordpress.org/support/users/loginizer/)
 * (@loginizer)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15505173)
 * [@moderator](https://wordpress.org/support/users/moderator/) Please delete this
   post was made by mistake.
    -  This reply was modified 4 years ago by [loginizer](https://wordpress.org/support/users/loginizer/).
 *  Plugin Author [brijeshk89](https://wordpress.org/support/users/brijeshk89/)
 * (@brijeshk89)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15505178)
 * Hi,
 * I did try with the following example ranges :
 * 2001:db8:0000:0000:0000:0000:0000:0000
    to 2001:db8:0000:0000:0000:ffff:ffff:
   ffff
 * and connected from :
    2001:db8:0000:0000:0000:0000:0000:0001 2001:db8:0000:0000:
   0000:0000:0000:0002 2001:db8:0000:0000:0000:0000:1000:0001
 * and all scenarios worked.
 * If you can email me the exact IP and the IP range you used via email admin[@]
   wp-inspired.com I can test with those ranges and check what could be causing 
   the issue.
 *  Thread Starter [4x0v7](https://wordpress.org/support/users/4x0v7/)
 * (@4x0v7)
 * [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15522728)
 * Thanks, hopefully you got my email!
 * I found that this site is really quite useful: [https://test-ipv6.com/](https://test-ipv6.com/)
 * The source code for it is here, in case you need to implement pieces in your 
   plugin: [https://github.com/falling-sky/source](https://github.com/falling-sky/source)

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Dual-stack client’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ip-based-login.svg)
 * [IP Based Login](https://wordpress.org/plugins/ip-based-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ip-based-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ip-based-login/)
 * [Active Topics](https://wordpress.org/support/plugin/ip-based-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip-based-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip-based-login/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [4x0v7](https://wordpress.org/support/users/4x0v7/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/dual-stack-client/#post-15522728)
 * Status: not resolved