Quantcast
Viewing all articles
Browse latest Browse all 9386

Can't communicate with ASP.NET Core webAPI from another computer.

Hello all, I'm new to ASP.NET and I'm having some trouble I'm hoping to get some help with. I've written a very simple ASP.NET Core WebAPI that I'm trying to test. When I run it on my development machine I am able to communicate with it via the browser by typing in: "http://localhost:8081/api/status". It returns the correct result. But then i tried to communicate with it from another machine and it doesn't work. First, on the host machine - after making sure the webapi is running - I type "ipconfig" to get the ip address (it's always using port 8081). Let's say the ip address of the host machine is 123.45.678.123... I then type into the browser on the other machine "http://123.45.678.123:8081/api/status", but this generates a "Hmm, we can't reach this page" error message. I am able to ping back and forth between the two machines but only after disabling the firewall on the client. What could be the problem here? Thank you in advance.

-L 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>