IKEA Trådfri Gateway integration

Hello, I have a problem with IKEA Trådfri Gateway. I had previously been integrated by discovery but after the update they did not change the state of the devices. According to the instructions, I removed the integration and wanted to add the gate again, but this one is no longer detected by discovery. If I add it manually, it does not accept security code. Do you have any suggestions? Raspberry Pi and gateway have been restarted several times already and I’ve assigned a new IP to the gateway.