❔ how to make web api accessible from another machine
Hi, I've made a simple api which returns "hi, name" when i pass in name=rob. Now it's in localhost and i can only use in my host machine. How do i make the api available such that i cam access it from anywhere?
4 Replies
you'll need to host it somewhere
ie have a server running your program
if you just want a way to access it temporarily while developing, you can use https://ngrok.com/
Yes, i just want to test it. I'm trying to simulate an api.
I'll look into ngrok thanks
azure web service is easy to create and publish also
you can use free plan shared hosting
integrated with visual studio where you can connect with your azure account and publish within visual studio to server
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.