I'm building flutter project to access localhost machine using http, the problem android emulator cant access host-name. I want to get url working for api that provide json.
Edit file system32/drive/etc/hosts
127.0.0.1 localhost
127.0.0.1 hipiapp.test
192.xxx.xx.xx localhost
192.xxx.xx.xx hipiapp.test
Error if connect without ipaddress(this link work if use normal web browser but not in android studio)
final String urlApi = 'http://hipiapp.test/api/index';
'hipiapp.test' (OS Error: No address associated with hostname, errno = 7)
if I use full with my ip , error url not found.
final String urlApi = 'http://192.xxx.xx.xx/hipiapp.test/api/index';