"Wrong Code entered" - 2fa error

As in title I activated 2FA and get this wired message.
I tested the code (right before it was sent and after generated) and compared it with what was received through Email and it is identical. I am testing it on the local PC, while database is on a hosting server.

Does anybody have this type of problem ?