Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

Allow IPv6 and IPv4 in Licensing Module

Stream101 shared this idea 5 years ago
Investigating

Lets get WHMCS to add a feature to allow both IPv6 and IPv4 addresses. Make it an option within the module if you want to allow that or not. When an IPv4 first connects back, it registers it, same thing happens with the v6 address. Depending on my cell phone service, I sometimes connect to WHMCS in ipv6 which says I'm unlicensed. I have to reissue it and then can login. I did find out if you ask, you can get it manually put in, but that could save me a headache and them time!

Thanks!

Best Answer
photo

For clarification, the licensing addon already supports IPv6 today.

What we believe is being requested here is to automatically store both the IPv4 and IPv6 address at the time of the initial check-in for a license. The way it works today is the IP the user connects from is stored. How are you proposing that the other IP be automatically detected?

Comments (23)

photo
1

How do you envisage this working? In a single license validation request only one IP will ever be returned or be the originator of the request. And once that one IP has been stored as the valid IP for the license, the license will no longer be in a reissued state and therefore future validation calls would typically not alter the list of valid IP addresses for a given license key.

Please tell us more about the experience you desire to see here so we can better understand the request for change.

Thank you.

photo
1

  1. How do you envisage this working?

And how you do with WHMCS License? Do we contact support and request to add the IPv6 IP manually to the license?

  1. In a single license validation request only one IP will ever be

    returned or be the originator of the request. And once that one IP has

    been stored as the valid IP for the license, the license will no longer

    be in a reissued state and therefore future validation calls would

    typically not alter the list of valid IP addresses for a given license

    key.

Yes, correct and this is where all the logic fails when it comes to validate a dual stack environment and where we should start to think: Are we doing it the right way?

photo
1

Once a license has been validated, the information is stored in the localkey and this key is queried each time. We can detect if the IP is a IPv4 or an IPv6 IP. If the stored IP is v4 and the IP is now an IPv6, then it should be validated. The same viceversa. This said, it should not only check if the IP is valid, it should also check if the IP is v4 or v6. Only one v4 and only one v6 IP will be allowed and validated.

photo
photo
1

If a website has an IPv6 address, it also has an IPv4 address in most cases. Depending on the connection to the licensing server, the license check might go over IPv4 or IPv6. This can change, so if the license has the IPv4 address, the IPv6 will not validate. It needs to be able to store one IPv4 and one IPv6 per license instead of just one address.

Each time I move my WHMCS to a new VM that gets a new IPv4 and IPv6, I end up having to open a support ticket with WHMCS so they add my IPv6 address, otherwise I might find myself randomly not able to use WHMCS due to licensing error.

Same thing goes for my customers that have licenses with me. It's an annoying problem and a waste of time to handle this manually.

photo
1

Here I have the answer of my doubt: Yes, WHMCS also does add the IPv6 IP manually to their licences.