1

I would like to host an application from a local Windows pc, for my local network

I have an ASP.NET Core application (running in debug mode) on Windows pc A (192.168.1.10) on port 5001

There is another Windows pc B (192.168.1.11) that would like to access the application that pc A is hosting

When i disable the firewall on pc A, I am able to ping pc A from pc B, but I am unable to browse the web application hosted on port 5001 (https://192.168.18.10:5001)

There is no active CORS policy on the hosted application

Are there any steps that i've overlooked? Do you have any thoughts on how I could resolve this issue?

UPDATE: I have now installed NGINX as a reverse proxy and this seems to work. Is there any information on why I could not achieve this without NGINX?

8
  • 1
    "an application": more detail might be useful. Commented Jun 5, 2023 at 18:40
  • I have an asp . net core MVC application,its a web application Commented Jun 5, 2023 at 18:47
  • What error do you get when browsing to this URL?
    – harrymc
    Commented Jun 5, 2023 at 19:17
  • Hello Harrymc, i get the message "Connection refused", which makes me think it has something to do with the firewall? Commented Jun 6, 2023 at 9:34
  • @harrymc, i have updated my question with NGINX Commented Jun 6, 2023 at 13:55

1 Answer 1

1

A URL must be sent to a web-server to be handled, which is why it worked for you after you added NGINX.

It's possible for an application to open a socket on a port and listen for incoming data, but then you need to create a protocol to be used between your server and client apps, and cannot use the helpful functionality of the web-server.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .