I'm using xamarin forms + asp.net core web api. If I try to call from Postmat then everything is fine, but if I call from a device (I use a real device, not an emulator) then I have this error "Failed to connect to localhost / 127.0.0.1: 44373" My string "https: // localhost: 44373 / api / v1 / reports / get_reports" Phone local IP - 192.168.0.101
My ipconfig Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::4dbf:c945:4125:74c8%5 IPv4 Address. . . . . . . . . . . : 192.168.0.102 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.0.1