Or is there apossible way to do like a local software application and open it in another pc... i am trying to have some kindo of app or website to work locally for someone?
access website hosted in IIS on windows 10 from any pc
Hello ...
i have created my website using asp net web app (.Net framework) it is my first one i wanna deploying it locally and give the access from another pc in different place (not on same network to use it ) but i don not understand a lot in this part so i have multi questions and i need help ...
first how can i give someone access to do that ?
* i have read that i can do that using IIS and IIS Express ... i have tried using IIS and published my code and managed to open it locally also i have tried to change in firewall settings and i gave my mobile and another pc to connect it (same network of course )but i failed to give access remotely ... also i have read to change in http.sys which i do not know where is that and if this method related to deploying using IIS Express ...
my second question if i managed to connect someone to my local website .. at every time he wanna use this website do i need to start the website from my laptop or not?
so please could you tell me how to give someone access remotely to my website in detail as i have tried punch of things and all failed ...
Thank you so much in advance....
Developer technologies | ASP.NET | ASP.NET Core
6 answers
Sort by: Most helpful
-
-
Bruce Zhang-MSFT 3,771 Reputation points
2021-02-05T02:31:21.667+00:00 Hi @NALB ,
I suggest you use IIS, IIS Express is for developers to test.
If you have successfully deployed the application to IIS and can access it locally, the next thing you need to do is to connect other PCs or mobile phones to the LAN where IIS is located. Turn off the firewall or open the port bound to the website on the PC where IIS is located. Then you can visit the site through the IP and port in the browser.
netsh advfirewall firewall add rule name="Open Port 80" dir=in action=allow protocol=TCP localport=80
As far as I know, there is no need to set up http.sys during this process. You can first try to use the ping command on another PC to interact with the PC where IIS is located. If the interaction is successful, it means you can access.
Regarding your second question, that is why I recommend using IIS. As long as the application is always running in IIS, other PCs can always access it, and you do not need to manually start it. The only thing you need to do is to keep the PC where IIS is on and connected to the network.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards
Bruce Zhang -
NALB 71 Reputation points
2021-02-05T11:08:10.473+00:00 Hello ...
Thank you for your reply but i still do not get how to other pcs can access mine .. do you want me to run the above command where ? On my pc or on whoever wanna access my local host ?
Also another question ... as my local website have connection to my local database sql ... and it downloads files on my pc ... whoever will use that local host will use my storage too .. right ?
Thank you alot
-
NALB 71 Reputation points
2021-02-05T11:09:32.04+00:00 As i mentioned i have managed to get other devices on same network to access my local host in the firewall ... do i need to switch that off ?
-
NALB 71 Reputation points
2021-02-05T11:13:23.76+00:00 After i read your reply again ... i wanna make sure that you get that i wanna other pcs externally that on other networks to access mine not the ones on same network ...
Sorry for the inconvenience