Solved

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

Posted on 2013-01-05
4
402 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now