I tried to configure access to the ASP.NET Core application through the IP address of my computer. Whenever I tried to access a website through my smartphone, I was getting an error ERR_CONNECTION_TIMED_OUT
. I did everything exactly as described in numerous similar questions/answers on Stack Overflow, but they doesn't help to solve my problem.
Here is part of my applicationhost.config
:
...
<bindings>
<binding protocol="http" bindingInformation="*:8080:192.1XX.XX.XX" />
<binding protocol="http" bindingInformation="*:8080:localhost" />
<binding protocol="http" bindingInformation="*:62641:localhost" />
</bindings>
...
I also tried several another ports and tried to use IP addresses from both Wi-Fi and Ethernet. If I try to access the site through the IP address from the computer on which the application is running, then everything works. But it does not work from my smartphone.
I deployed my application with IIS Express. My smartphone is connected to the Wi-Fi router to which the computer is connected too, so both devices are in the same network.
What might be the problem?