Set web.URL-> "string", works fine with IP address, but not when hostname is used

Hello Everyone,

I am making an application in app inventor, the app is supposed to communicate with ESP32. I am facing the following situation:

  1. App inventor application works fine when i use IP address, but as soon as i switch to host name, the app can't talk to ESP32.
  2. When i put the same URL in browser, it works for both (IP address and host name).

Need guidance from the community.

Not all versions of Android support mDNS, so using an mDNS hostname is not guaranteed to work.

Thanks for the response, yes this is the reason ... got it.