I have a ASP.NET C# application and I am able to run it locally on my machine. I see it is IIS Express is hosting my application.
I can access it using 'https://localhost:4374'.
But when I look up my ip address of my machine and then go https://{my ip address}:4374'. I get an error saying 'Bad Request - Invalid Host name'
Can you please tell me how can I configure ASP.NET C# application so that I can use it using https://{my ip address}:4374?
Thank you.
1st solution:
Steps:
Open command prompt as administrator
Type the following:
netsh http add iplisten ipaddress (YourIPAddress)
That's it. You should get:
IP address successfully added
2nd solution:
Steps: