I'm having trouble to access my website from outside my local network. To be sure what i mean i want to write my ip (http://whatismyipaddress.com/) address in browser and my website to show. Let me describe what
I already did:
1. At first port 80 was closed, obviously default setting.
2. I forwarded port 80 to my Win7 machine 192.168.1.101.
Please check the pool assign to this in IIS. It should be of 4.5 not 4.0
This is incorrect. IIS, regardless of the .Net Framework the application is using, uses the .Net 4 CLR. There are only two .Net choices for the application pool:
v4
v2
Mark all posts that give the desired result the answer. If you only mark the last that gave you clarification because you misread an earlier post others will be confused. Some of us are here to help others and our point to post ratio matters.
Great!! that you've set the pool, but is your application is running under vs2015 because before making it live it is necessary that it is a working application.
In IIS: right click on "Sites" then "Add webite" that's correct right?
And besides steps written in first post is there anything else that i should configure, do? Those steps are literally everything i did after installing VS and IIS.
in IIS you can put site either into the IIS folder in c:\Inetpub\Wwwroot or if you if you don't want to put there then you have to add virtual directory in IIS and point it to your folder. Please put your site in
\Inetpub\Wwwroot or map a virtual directory VD
One more thing after installation of IIS did you browse that so that to check every thing working fine.
@Marko please work with me for next 20 mints I m GMT+5 region. About to leave ASAP. Currently also installing IIS on mine VM for this
First thing first you need to be sure that IIS is running properly and then it should be able to run your site in 4.5. Try to google and setup iis for your application.
Also attach screen shots of error in browser. OK see you soon bye
Great you have progress remarkably well. Please try to do simple thing inside your vd folder i.e. mywebsite. Remove whole website and put a simple html or script aspx page and then browse it.
IIS asp.net module is not set properly. Please go back to windows feature and check whether you have selected asp.net 3.5 and asp.net 4.5 options selected.
please follow the article which I mentioned you are close but not there may be under web development but plz follow the article and try to fix this by today see you
But still my typing my ip 'www.whatismyip.com' still doesn't load the site. It's trying but nothing happens.
And to explain what got it to work... I don't really now. I checked all missing things in windows features but it didn't work. Then I just run Windows Update and puff it works:D
certainly not as you told that you can access site from other device than its done. Now you need to use any proxy server as I did
kproxy.com. And type
http:Ip/myWebSite then enter
as you already have set the router setting in your first question. Then you should see your site.
EDITED:
Others on different network can browse your site url based on your IP. While if you're on same network then you've to use any proxy
EDITED
you can also checkout one of many tutorial on youtube like this
https://www.youtube.com/watch?v=GC_zc8nIAyw#t=215.068376
Member
22 Points
30 Posts
Can't put my website online
Jan 23, 2017 06:48 PM|Marko_911|LINK
Hello,
I'm having trouble to access my website from outside my local network. To be sure what i mean i want to write my ip (http://whatismyipaddress.com/) address in browser and my website to show. Let me describe what I already did:
1. At first port 80 was closed, obviously default setting.
2. I forwarded port 80 to my Win7 machine 192.168.1.101.
3. Added rule to Windows firewall.
4. Port 80 is shown as open http://www.canyouseeme.org/
5. In Visual Studio 2013 I published my website (Build -> Publish Web Site) to C:\www\myWebSite
6. Added website in IIS:
Site name: myWebsite
Physical Path: C:\www\myWebSite
Type: http
IP address: All unassigned
Port: 80
Host name: i don't have a domain so i left it blank (i read somewhere that is what i should do)
That's all steps that i did and when i put my ip in browser it's trying to connect but nothing happens it's just trying and trying.
I also called my ISP and they said that they don't block any port espacially port 80.
Please help
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 23, 2017 07:05 PM|mohtshm|LINK
Can you access your site on your local ip i.e.
192.168.1.101
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 23, 2017 07:11 PM|Marko_911|LINK
I didn't try this before.
I get an error, but it's in polish so i can't copy paste. Basic transalation would be:
Server error in application '/'.
Configuration error.
Unknown attribute 'targetFramework'
Wiersz 16: Wiersz 17: <system.web> Wiersz 18: <compilation targetFramework="4.5" /> Wiersz 19: <httpRuntime targetFramework="4.5" /> Wiersz 20: </system.web>
Target file: C:\www\myWebsite\web.config Wiersz: 18
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 23, 2017 07:28 PM|mohtshm|LINK
You need to install framework4.5 on this machine. Make sure to've all prerequisite for site on this machine
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 23, 2017 07:57 PM|Marko_911|LINK
Just tried to install .Net 4.5 and it said that there is already installed the same or newer version of .Net framework;(
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 23, 2017 08:07 PM|mohtshm|LINK
Please check the pool assign to this in IIS. It should be of 4.5 not 4.0
https://pk.linkedin.com/in/mohtishamzubair
Contributor
7048 Points
2189 Posts
Re: Can't put my website online
Jan 23, 2017 08:49 PM|ryanbesko|LINK
v4
v2
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 23, 2017 08:59 PM|Marko_911|LINK
As ryanbesko wrote. I can only set v2.0 or v4.0. It was set to v2.0 and when i switched to v4.0 error changed to:
Page 192.168.1.101 is not working
Server 192.168.1.101 cannot process this request
HTTP ERROR 500
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 25, 2017 07:12 AM|mohtshm|LINK
Great!! that you've set the pool, but is your application is running under vs2015 because before making it live it is necessary that it is a working application.
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 25, 2017 05:27 PM|Marko_911|LINK
It's 2013 but debug in Chrome works fine.
In IIS: right click on "Sites" then "Add webite" that's correct right?
And besides steps written in first post is there anything else that i should configure, do? Those steps are literally everything i did after installing VS and IIS.
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 25, 2017 05:50 PM|mohtshm|LINK
in IIS you can put site either into the IIS folder in c:\Inetpub\Wwwroot or if you if you don't want to put there then you have to add virtual directory in IIS and point it to your folder. Please put your site in \Inetpub\Wwwroot or map a virtual directory VD
One more thing after installation of IIS did you browse that so that to check every thing working fine.
@Marko please work with me for next 20 mints I m GMT+5 region. About to leave ASAP. Currently also installing IIS on mine VM for this
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 25, 2017 06:05 PM|Marko_911|LINK
It's in C:\www\myWebSite.
Now i saw that i have authentication error when i test setting when adding website;( Can't verify access rights or something like that.
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 25, 2017 06:11 PM|mohtshm|LINK
have you configure vd???
https://pk.linkedin.com/in/mohtishamzubair
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 25, 2017 06:12 PM|mohtshm|LINK
Your path is wrong
Listen leave your application just *try to browse default website in IIS from IIS manager
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 25, 2017 06:13 PM|Marko_911|LINK
Default Web Site -> Right click -> add VD -> c:\www\myWebSite
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 25, 2017 06:16 PM|mohtshm|LINK
Great!!! now right click on folder mywebsite and go to security and add user IIS_IUSRS and give full control
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 25, 2017 06:16 PM|Marko_911|LINK
Default Web Site is selected than I click browse *:80, chrome starts with localhost as address but the site is blank, no error no content.
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 25, 2017 06:17 PM|mohtshm|LINK
Please do check is IIS running fine?????? by browsing default web site
https://pk.linkedin.com/in/mohtishamzubair
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 25, 2017 06:18 PM|mohtshm|LINK
ok!!!!!!!!
can you check that s default web site running or stopped?
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 25, 2017 06:20 PM|Marko_911|LINK
Running is greyed so i think it's running. I set IIS_IUSRS full control but still authentication error.
Please don't sacrifice Your time for me. Im in no hurry.
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 25, 2017 06:29 PM|mohtshm|LINK
First thing first you need to be sure that IIS is running properly and then it should be able to run your site in 4.5. Try to google and setup iis for your application.
Also attach screen shots of error in browser. OK see you soon bye
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 25, 2017 06:35 PM|Marko_911|LINK
I think I got default web site running. Is it IIS 7 logo with welcome in many languages?
I was missing windows servie: Internet Information Services --> World Wide Web Services --> Common HTTP Features --> Click the Static Content
Back to googling for the rest of the problems:)
@edit
I got the authorization error sorted out. I set the 'connect ass' to certain user (tip - it needs to be password protected).
Default Web Site: localhost -> works fine, but 'localhost/myWebsite' gives HTTP Error 500 Web site not working Server can't process request.
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 26, 2017 07:38 AM|mohtshm|LINK
Great you have progress remarkably well. Please try to do simple thing inside your vd folder i.e. mywebsite. Remove whole website and put a simple html or script aspx page and then browse it.
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 26, 2017 05:09 PM|Marko_911|LINK
Simple page like this below works, but it has to be named "index.html", otherwise it's blank.
But with my webpage I get the 500 error ;(
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 26, 2017 05:56 PM|mohtshm|LINK
save a file name as index.aspx and type following syntax:
<%="Greeting Marko"%>
then browse that page directly from IIS
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 26, 2017 05:59 PM|Marko_911|LINK
It shows completely blank.
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 26, 2017 06:23 PM|mohtshm|LINK
IIS asp.net module is not set properly. Please go back to windows feature and check whether you have selected asp.net 3.5 and asp.net 4.5 options selected.
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 26, 2017 06:44 PM|Marko_911|LINK
It gonna sound weird but i don't have such options. I mean in "WWW Services" i have : 'ASP', 'ASP .NET'.
And I have group 'Microsoft .Net Framework 3.5.1' which was unchecked but checking it didn't help. I can't find anything like 'ASP 4.5' :(
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 26, 2017 06:50 PM|mohtshm|LINK
these options are under start > control panel > program and features > on/off windows(left side top)
then select IIS in the pop up window under which explore you will find these asp.net 3.5 and asp.net 4.5
which windows you are using??
https://pk.linkedin.com/in/mohtishamzubair
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 26, 2017 07:02 PM|mohtshm|LINK
please also check this
https://msdn.microsoft.com/en-us/library/hh167503(v=nav.90).aspx
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 26, 2017 07:05 PM|Marko_911|LINK
Under 'IIS' group i have 3 things (my transalation):
- web managment tool
- Server FTP
- WWW services
- making aplitacion functions
- ASP
- ASP .NET
No one named 'ASP 3.5' or 'ASP 4.5' not here nor in any other group ;(
@edit
Windows 7 Ultimate
@edit2
I read Your link and checked everything that i was missing but it didn't solve the problem:(
Your simple aspx page still is blank but my website error changed to:
HTTP 500.21 — Internal Server Error
In handling „PageHandlerFactory-Integrated” in module list there is incorrect module „ManagedPipelineHandler”
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 26, 2017 07:20 PM|mohtshm|LINK
please follow the article which I mentioned you are close but not there may be under web development but plz follow the article and try to fix this by today see you
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 28, 2017 09:03 AM|Marko_911|LINK
Ok so I got it to wrok on:
- Virtual Direcotry (localhost/myWebSite/)
- Adding new Website (localhost)
But still my typing my ip 'www.whatismyip.com' still doesn't load the site. It's trying but nothing happens.
And to explain what got it to work... I don't really now. I checked all missing things in windows features but it didn't work. Then I just run Windows Update and puff it works:D
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 28, 2017 12:24 PM|mohtshm|LINK
Great news!
many congrats!!!!!!
now you're browsing your site by typing url
http://localhost/myWebSite/
is this local machine 192.168.....101 which you want to host your site.
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 28, 2017 01:28 PM|Marko_911|LINK
Thanks but wouldn't made it without.
Yes Im browsing thru: localhost/myWebSite/
And Yes my machine is 192.168.1.101. I can view it thru this IP when I add new WebSite, beside VD in default web page.
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 28, 2017 04:35 PM|mohtshm|LINK
do u've any other machine on your network from where you can browse
http://...101/myWebSite/
to make sure access is allow from your machine
https://pk.linkedin.com/in/mohtishamzubair
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 28, 2017 05:12 PM|mohtshm|LINK
check this image after I've lived mine site on localnetwork
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 28, 2017 05:15 PM|Marko_911|LINK
I don't have another pc but my tablet can enter my website (192.168.1.101).
I don't understand what's the picture for?
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 28, 2017 05:21 PM|mohtshm|LINK
Good Question??
Simply to impress you
certainly not as you told that you can access site from other device than its done. Now you need to use any proxy server as I did
kproxy.com. And type
http:Ip/myWebSite then enter
as you already have set the router setting in your first question. Then you should see your site.
EDITED:
Others on different network can browse your site url based on your IP. While if you're on same network then you've to use any proxy
EDITED
you can also checkout one of many tutorial on youtube like this
https://www.youtube.com/watch?v=GC_zc8nIAyw#t=215.068376
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 28, 2017 05:32 PM|Marko_911|LINK
Houston we have lift off :D
I can access my website from outside my network, phone for example:) Nice thank You very very much.
But last question, just out of curiosity, why can't I access my website typing my WAN ip from inside the network and from machine that is the host?
Once again thanks, I owe You a cold one :)
Member
260 Points
138 Posts
Re: Can't put my website online
Jan 28, 2017 05:41 PM|mohtshm|LINK
Great!!!!!!! at last you done it.

And
I'm sorry could'nt help you much to do in mints as it should be.
You can ask this from any networking expert. May be some loopback concept but I'm not sure
Meanwhile You can also move away this myWebSite from your path by directly mapping in VD
https://pk.linkedin.com/in/mohtishamzubair
Member
22 Points
30 Posts
Re: Can't put my website online
Jan 28, 2017 06:49 PM|Marko_911|LINK
You did a lot. Thanks again.