Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to access a website via internet running locally on IIS of webserver

Posted on 2013-01-05
4
455 Views
Last Modified: 2013-01-09
I have setup a website on my web server. I can access the site locally on webserver using the url http://local.nkarch.co.uk/home.aspx. ( Now I want to access it via internet) I am using windows 2008 web server and IIS 7.5.  I know we can setup a virtual directory on server and access the website using the IP like http://xxx.xxx.245.194/nkarch.co.uk/home.aspx but I don't want to create a virtual directory to access it.
0
Comment
Question by:mmalik15
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
Andrej Pirman earned 400 total points
ID: 38746667
You do not need virtual directory.

What you need is to:
- open Windows firewall in direction INBOUND, port 80
- open your router or firewall & NAT, port 80 to point to your local server's IP 192.18.x.x, port 80

At this point your website should be accesible from outside using public IP address http://1.2.3.4

What you might want to play with is in IIS --> Your Web site --> Bindings, where you will see "Host header" value. If you do NOT enter there anything, then this must be your only web site on this server, so it can be opened via IP or by name.
But if you want more web sites, then each must have "Host header" value, for example: www.yoursite.com, and files.yoursite.com etc.
That way the request from public IP (from internet) will also have "domain name" included, and depending on that value, the correct web site will react.

Of course, your PUBLIC DNS (or some free DNS) must be configured with proper A-records, so that your public domain names point to your public IP address.
0
 
LVL 18

Expert Comment

by:Andrej Pirman
ID: 38746670
One more thing - the example you gave:
http://xxx.xxx.245.194/nkarch.co.uk/home.aspx 

is confusing. it includes IP address, meaning the request will go to IP xxx.xxx.245.194, where it will try to access a FOLDER /nkarch.co.uk, and inside this folder it will run home.aspx application.
Confusing part is that nkarch.co.uk looks like DOMAIN name, and it contradicts logic - why would you access the publically available domain via IP?

The public link should be EITHER:
http://xxx.xxx.245.194/home.aspx (...if you do not have public DNS setup)
or
http://nkarch.co.uk/home.aspx (...if you DO have public DNS properly setup)
0
 
LVL 13

Expert Comment

by:Sandy
ID: 38746930
besides this you can also change the port for that specific site and can access
0
 
LVL 23

Assisted Solution

by:Roopesh Reddy
Roopesh Reddy earned 100 total points
ID: 38750169
Hi,

Are you on Static IP? If yes, then you can directly access with your IP Address!

If you are on dynamic IP, then you may have to consider above suggestions.

Hope it helps u...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question