Normally we can connect our local server in browser with use of http://localhost or http://127.0.01.
But this method doesn’t workout with android emulator. for this situation we can connect through specialized ip called 10.0.2.2.
It will work perfectly.
Have a nice day!