I want to allow people on the same network as me to make requests to a backend I'm running (It's an ASP.NET Core
web API but I don't know if this is relevant).When I make requests from my PC, I only need to use localhost
and the port the server is running on (which I know). I don't know what is the URL that they should use.
Asked
Active
Viewed 54 times
-1

stack_overflow_nickname
- 121
- 8
1 Answers
0
I am not sure where you will host your web app. Usually, we will host it in IIS and using self-host application.
But we need to pay attention, because we generally use the personal version of the windows operating system, such as win10 or win11, if you use websocket in your web app, it will be limited by 10 connections. Due to the lack of a domain name resolution server, it cannot be accessed using a custom domain name. Access can only use ip+port to access web app.
Url should like below:
http://192.168.1.X:80
All we need to do is allow the port to be accessed in the firewall settings.
Tips:
If you want your application to be accessed remotely, we can use intranet penetration technology, such as frp or ngrok.

Jason Pan
- 15,263
- 1
- 14
- 29
-
Where can I look up what the exact URL is? How do I know what to put instead of X? – stack_overflow_nickname Mar 07 '23 at 08:36
-
@stack_overflow_nickname https://i.stack.imgur.com/0IIJV.png – Jason Pan Mar 07 '23 at 09:49
-
I couldn't make it work. I added inbound and outbound rules for the port my web API runs on. Yet, my coworker (who is on the same network) could not connect to it. – stack_overflow_nickname Mar 08 '23 at 10:33
-
@stack_overflow_nickname [Try this.](https://stackoverflow.com/a/70359161/7687666) – Jason Pan Mar 08 '23 at 11:37
-
Sorry, but I am reluctant to share those. – stack_overflow_nickname Mar 09 '23 at 08:01
-
@stack_overflow_nickname, Under normal circumstances, it should be an intranet ip like 192.168. – Jason Pan Mar 09 '23 at 08:02
-
If you have more error details, you are very welcome to share them with us. – Jason Pan Mar 09 '23 at 08:04