Search code examples
codeignitercodeigniter-3ion-auth

codeigniter ion-auth2 redirects me to an ip version 6 address


I am quite new with codeigniter and ion-auth2 package for authentications. right now I have my codeigniter and the ion-auth package, both are merged,database has set upped and looks to have no error. I can access my index.php and default page with no error, but when I want to go to my ion-auth route using it's route like this:

localhost:81/code/index.php/auth

after i press enter.it redirects me to a route like this:

[::1]/code/index.php/auth/login

My problem is why I am getting the IPv6 format after accessing the auth controller.

The page looks like: enter image description here


Solution

  • that's just your localhost ip, when you deploy your project online it will be something like a ipv4 address, don't worry about it. It's okay and will impact no harm to your project :)