Solved

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

733 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