Not able to connect to Server

Hello guys,
Yesterday i ejected my app to Bare Workflow but since am not able to to connect my project to either a physical device or my android simulator, My react Native server runs on port 8081 but the android emulator does not connects to it. Please did someone have the same problem? am working on Ubuntu 18.04.2.