Try making a firewall exception for the game. Go to Windows Security → Firewall → Allow an app through the firewall → Add an app → find PokemonEmerald.exe, and try running it as an administrator.
It didn't work for me :(
ty <33