简体   繁体   中英

debug on public IP address running ASP.NET in visual studio 2019

I wonder if is it possible to debug an app ASP.net (here a web api) by using public IP address. Indeed, it is mandatory for me to use the IP public of my dev computer to send data to my web api (data are coming from an another website request).

Edit:

Visual studio seems to only use localhost. I have tried to forward port but this doesn't work. It seems it is the normal behavior of visual studio.

For older Visual Studio versions (2015, 2017, 2019), you can use the NgRok VS extension that will give you a public IP for your Web Api project ( https://marketplace.visualstudio.com/items?itemName=DavidProthero.NgrokExtensions )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM