Hope you all are safe and doing well.
I am new to React and ASP.NET. I was trying to setup a asp.net core webapp following the tutorial.
When I run npm start
the application spins up correctly, but when I try to add any user-detail, in network tab the API call fails with net::ERR_CONNECTION_REFUSED
. Also I am not sure, if I should hit localhost:3000
it gives 404
or localhost:5000
to hit the API. although in tutorial it hits 5001
. When I try to hit 10.0.2.2:5001
(again based on some other provided solution)I start getting connection time out. I tried various solutions including this but none of them seem to be working for me.
The code is exactly the same as I am trying to run the cloned project, but let me know if I need to paste more details.
I am actually trying to setup a company project following the same modules given in the tutorial but facing the same error and the call from app to controller is not happening with the same error.
Any help is much appreciated. Thanks in advance.