can we route all api call to ip adress instead of localhost

saanvi 1 Reputation point
2021-04-08T05:44:17.813+00:00

HI Team,

can we route all api call to ip adress instead of localhost if yes please share supported code

below are example

https://IP :8881/api/v1/devices

https://localhost:8881/api/v1/devices

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yihui Sun-MSFT 801 Reputation points
    2021-04-09T06:17:51.707+00:00

    Hi @saanvi ,

    Do you want to open the website by IP address?

    ➤If this is the case, you can deploy the project to IIS first, and then access the website through the IP address. 86143-pic.png

    Here are some links that can help you.

    ➤**Publish to IIS** ➤**How to configure ASP.NET MVC web project to be accessible from another PC in the company's same network?**


    If the answer is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. Best Regards, YihuiSun

    0 comments No comments