Trying to make my laptop a web server - iis-7

I'm trying to make my Laptop a temporary web server. It's been several years since I've set one up and I really didn't know what I was doing then =).
Long story short is that IT will not have a server ready for awhile and I need to test my site with other endpoints (PC's, iProducts, Android).
I have IIS7 installed and running. I'm using the Default Web Site that is set up and I put a simple Default.htm page in my inetpub\wwwroot folder.
<html>
<head>
<title>Test</title>
</head>
<body>
<div align="center">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">My Web Site</td>
</tr>
<tr>
<td align="center">Does It Work</td>
</tr>
</table>
</Div>
</body>
</html>
Using the IP address or the computer name I can access the site locally on the laptop and see the web page.
http://123.45.678.90/
http://MyMachine/
If I go to another machine on my Intranet, I can't get to the web server. I can however Ping both the IP address and the computer name.
Is there something I have to set in IIS to make it public or something?
Thanks for the help in advance.

If you can't access the web server from other machines on your network, but you can access it locally using a browser pointed to localhost, the problem is likely that Windows Firewall is enabled and not allowing port 80 HTTP traffic onto your machine from the network.
On Windows 7, you can access Windows Firewall in Control Panel | System and Security | Windows Firewall. Click Advanced Settings, and then select Inbound Rules from the Windows Firewall with Advanced Security window. Scroll down to "World Wide Web Services (HTTP Traffic-In)" and click "Enable Rule." This should allow inbound connections on port 80 to hit your web server.

If it answers locally but not externally, make sure it is on a public IP and the firewall is not blocking. This might be of use: https://serverfault.com/questions/54623/sites-in-iis-not-available-externally

Related

remote access to iis website by ip addess

I developed an asp.net mvc website and deployed it to my local IIS with success. I can access to the website by localhost:8080/site
I wanted to access the website from remote pc, I binded my website to the ip of my pc (windows 10) (the external ip with the routeur), I added a rule to the inbound calls for the port of the website with the windows firewall manager but I can't access the website remotely by the address http://ip-adress:port/website, I get timeout error.
How can I access this website
regards,
We made a VS Extension called Conveyor, you can get it from the extensions dialog or https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti it tunnels through firewalls to allow access to your website from outside, even if incoming calls are blocked by your ISP, as mentioned in the comments.

Asp.net Intranet Application in local Networks with out IP

I developed an asp.net (2.0) intranet Application for local network in an organisation..
so we have 10 systems every one should access that site by ://192.xxx.x.xx/xyz(website name) ...
so now their requirement is not to type total ip adress.they need just by typing ://xyz they have to browse the intranet application..how to solve this issue..?
Thanks
Veduru
Go to every one of this 10 computers, and in this directory
c:\WINDOWS\system32\drivers\etc\
find the host file and add the conversion of ip to name as
192.168.1.10 xyz
etc
and then you can access the site as http://xyz
Talk to your network admin about setting up a DNS entry for your application in the local DNS server. If you have multiple web sites running on your web server, look into configuring IIS host headers to ensure the users get directed to the proper web application.
Please do not manually edit the hosts file on each machine unless it is absolutely, positively necessary, and only do so as a last resort. When your 10-machine application expands to 100, or if your server IP ever changes, you will thank me later :)

I cannot access my IIS7 site on the network

I have an IIS7 site that works fine while on the server, however refuses to work from anywhere on the network.
When logged onto the IIS Server itself (with remote desktop) then the website shows fine, as per this link (I used port 801 for this site):
http://localhost:801/
However when attempting to access this site from the network, it refuses to work, giving the generic 'cannot display the webpage' message, while using the following link:
http://<<my IIS server>>:801/
Another thing I have noticed however is that on the network the default page (port 80) of the IIS server DOES work. I.E this following link shows the standard IIS7 page:
http://<<my IIS server>>:80/
Most of the help topics I've read point to it being a firewall issue, however as a test I disabled all firewall settings on the IIS Server, yet it still refused to show.
Does anyone have any other suggestions?
Many thanks
Did you tried with computer name and / or IP Address
e.g: http://192.168.1.105:80/
http://DELL_PC:80/
Run the following tests:
Check connectivity from both computers.
Firewall settings, temporary disable the firewall from all profiles (private, domain, public) if this works, try adding a Port Rule to your firewall allowing incoming connections to port 80.
Also, it'd be important to check the bindings configuration of your website, bindings specify the address the server should listen to for incoming connections, make sure you have 'All Unassigned'.
Reference : Click Here !!

Asp.net Application Accessible to other machines

I have application..its runnning on my localhost.. i need one more machine to access that application.. but when in tht link i type my IP address instead of localhost.. it showing cannot find server.. can you plz tell me steps what i need to do in orderr to access appplication to other machine.. as such there is no UAT server as of now...
First off, make sure your firewall allows access through port 80.
Then, check if your IIS allows access from outside IP's.
I can help more if you provide this:
Your OS (XP, Windows 7, etc)
the local link to your app. Is there a port number needed to access the app?
LaterEdit: Ok, then you need to do this:
Now, your app will be served by IIS on port 80 (default). Check your firewall to allow traffic through this port.
If you IIS is set for another port, then use that one.
Checking the port in IIS:
I'm going to assume that you are running the application from Visual studio which allows the localhost to run.
In order for your application to be available to other machines on the network, you have to ensure that IIS is installed on your development machine and then a website is set up for that application as well.
The application existing in IIS is what will make it accessible across your network.

Cannot access web application (Internet Explorer Can Not find this Page) remotely

I have Deployed my Asp.net web application on IIS 7.0 on localMachine(Server) and it is working fine there.
But when i try to access it from other machine in LAN, It gives me error that, 'Internet Explorer Can Not find this Page.'
I am accessing it on terminals using server name address and also tried using IP address.
Even I have Shared the Application Folder in network.
Check the Windows Firewall on your Vista PC. You need to let TCP port 80 through.
Make sure that you enable the firewall and bind to IP addresses other than localhost.
You don't need to and should not share the application folder.
This is a security risk as people on the network will be able to access the source code of the application. Also, it won't help with the problems you're having because a network share is not accessed over HTTP and so will never hit IIS and your web application. So you can turn off sharing for the folder and be safe in the knowledge that this isn't the issue.
Next, check your windows firewall and make sure incomming web trafic is allowed ("http" or "port 80").
Next I would have a look at the host headers that the site is running on.
Then maybe update your question with more detail.
Greg
You may also want to ensure that IIS is listening on the correct IP Address. This problem can occur if you switch from a LAN connection to a wireless connection (for example when taking a work laptop home).
To Check this, open inetmgr and right-click on the 'Default Web Site' node. Verify that the IP Address entry is set to the current IP of your machine.

Resources