简体   繁体   中英

Azure Get Ip address of hosting server for Google Cloud Services

I have a Web Api 2 project that sends Push Notification to an android app via Google Cloud Services. Running locally, I can get my machine's ip address and set this in my included IP's for my service api in Google API console, which works fine. However, I now deployed to azure and this is no longer working. I did an ip looking on my site name, so for example mySite.azurewebsites.net, where the site is hosted, but this does not seem to work.

Is there a way I can get the ip address of the service that is hosting my asp web api project in azure?

Have a look at the following tutorial . This might help you out in finding out the the IP address of the web api project you have hosted on Azure.

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