Android emulator runs behind a "virtual router" that isolates it from your development machine network.
Depending on you use case and machine network configuration, you could try using network redirection: https://developer.android.com/studio/run/emulator-networking