You are on page 1of 3

6/30/2020 How to access your website through LAN in ASP.

NET - Stack Overflow

How to access your website through LAN in ASP.NET [closed]


Asked 11 years, 3 months ago Active 2 years, 7 months ago Viewed 117k times

Closed. This question is off-topic. It is not currently accepting answers.

37
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 7 years ago.

28 Improve this question

I have an asp.net web-page application and i want it to be accessed using a local area
network(LAN) or wireless area network(WLAN).

I do not know where to start. Is there something that i will configure in order for others to
access my web-page??

I would really appreciate your answer, thanks a lot.. (^_^)...

asp.net asp.net-2.0

asked Mar 14 '09 at 17:52


Art

4 Answers Active Oldest Votes

I'm not sure how stuck you are:

You must have a web server (Windows comes with one called IIS, but it may not be
54 installed)

1. Make sure you actually have IIS installed! Try typing http://localhost/ in your browser
and see what happens. If nothing happens it means that you may not have IIS installed.
See Installing IIS
2. Set up IIS How to set up your first IIS Web site
3. You may even need to Install the .NET Framework (or your server will only serve static
html pages, and not asp.net pages)

Installing your application

Once you have done that, you can more or less just copy your application to
c:\wwwroot\inetpub\ . Read Installing ASP.NET Applications (IIS 6.0) for more information

Accessing the web site from another machine

In theory, once you have a web server running, and the application installed, you only need
the IP address of your web server to access the application.
https://stackoverflow.com/questions/646370/how-to-access-your-website-through-lan-in-asp-net 1/3
6/30/2020 How to access your website through LAN in ASP.NET - Stack Overflow

To find your IP address try: Start -> Run -> type cmd (hit ENTER ) -> type ipconfig (hit
ENTER )

Once

you have the IP address AND


IIS running AND
the application is installed

you can access your website from another machine in your LAN by just typing in the IP
Address of you web server and the correct path to your application.

If you put your application in a directory called NewApp , you will need to type something like
http://your_ip_address/NewApp/default.aspx

Turn off your firewall

If you do have a firewall turn it off while you try connecting for the first time, you can sort that
out later.

edited Nov 5 '17 at 18:11 answered Mar 14 '09 at 18:00


inspite
26.1k 21 72 88

but i need to publish or deploy my website first before coming up with


your_ip_address/NewApp/default.aspx .,?? am i right.,?? how can i publish it.,??? – Art Mar 14 '09 at
19:15

you can just copy and paste it to c:\inetpub\wwwroot\ then go to IIS and set it up as an application (try
this one support.microsoft.com/kb/172138) – inspite Mar 14 '09 at 20:17

by the way ., i have found out that my machine is using IIS 7., how can i create a virtuAL directory in
it.,?? – Art Mar 15 '09 at 0:05

try stackoverflow.com/questions/647484/… and msdn.microsoft.com/en-us/library/ms178477.aspx# –


inspite Mar 15 '09 at 10:18

I know this is an old thread, but make sure you have used "Add Windows Components" and added the
Management Console too! Otherwise you won't even see it in your start menu. – bgmCoder Jun 25 '12
at 16:00

You may also need to enable the World Wide Web Service inbound firewall rule.

On Windows 7: Start -> Control Panel -> Windows Firewall -> Advanced Settings -> Inbound
31 Rules

Find World Wide Web Services (HTTP Traffic-In) in the list and select to enable the rule.
Change is pretty much immediate.

answered Oct 10 '12 at 13:49


Mark
1,537 1 21 31

7 A main step. That's what I needed. – Erick Asto Oblitas Dec 13 '13 at 0:34

https://stackoverflow.com/questions/646370/how-to-access-your-website-through-lan-in-asp-net 2/3
6/30/2020 How to access your website through LAN in ASP.NET - Stack Overflow

You will need to configure you IIS (assuming this is the web server your are/will using)
allowing access from WLAN/LAN to specific users (or anonymous). Allow IIS trought your
1 firewall if you have one.

Your application won't need to be changed, that's just networking problems ans configuration
you will have to face to allow acces only trought LAN and WLAN.

answered Mar 14 '09 at 18:08


MarmouCorp
1,373 9 9

Not exactly. If you use an NTLM handshake for the request, then other users can even see the page
through computer/site. If on simple LAN, you have the option of modifying your hosts file, create VPN,
and more. A stage server will do you some justice as well., Out of the box, assuming the web site is
localhost, this can be accomplished with just the IP address, and disable your firewall. I would say,
imho, add the rules, but that's your call. All of this works really well, especially so if you begin using a
self signed certificate. Firewall and security rules are the gotchas. – Anthony Mason Feb 14 '16 at
12:52

If you use IIS Express via Visual Studio instead of the builtin ASP.net host, you can achieve
this.
0 Binding IIS Express to an IP Address

edited May 23 '17 at 12:34 answered Jan 19 '12 at 6:50


Community ♦ David d C e Freitas
1 1 6,878 4 51 63

https://stackoverflow.com/questions/646370/how-to-access-your-website-through-lan-in-asp-net 3/3

You might also like