Solved

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

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

How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

Join & Write a Comment

Suggested Solutions

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 give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
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…

757 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

18 Experts available now in Live!

Get 1:1 Help Now