'Adb reverse tcp not working on android emulator connected

I am trying to consume an api in flutter and I started getting an error on device emulator port in android studio

Which returns the following error:

enter image description here

I found a possible solution by executing a command called abd for example:

adb reverse tcp:33298 tcp:5554

After executing the command I try again from my emulator and I get the same problem

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source