Chirpstack stopped working when changing WiFi network

Hi friends
I recently installed the entire chirpstack stack on a raspberry pi 3B+ and everything was working fine for me, all the servers were working fine and the communication between the Gateway and the End device was working.
The problem was when the raspberry changed the Wi-Fi network, since it stopped receiving the data. I already checked the Chirpstack servers configuration, the .toml files and everything seems to be configured correctly, when checking the status of the servers, they are all active and I can access the application server and my end device tries to join.
I don’t understand what the problem would be, since I only changed the Wi-fi network and all the servers are configured with localhost.