Creating a Web Site and publishing it

  • Thread starter Thread starter Rafael Soteldo
  • Start date Start date
R

Rafael Soteldo

Hi there,

I'm a newbie in .NET Web development. I created a Web Site using VS2005,
then I press Start Debugging (F5), it works fine, I can see my page in
Internet Explorer 7.

The issue is: I try to access this page from another machine via the
internet, since a don't have a domain name, in the other machine I type
something like http://200.8.119.136/MyVirtualDirectory/MyWebSiteName.aspx as
the address, being 200.8.119.136 my currentIP Address (it's not static).

Then I get this message saying that Internet Explorer can't show the web
page (I translated it from spanish).

Could anybody tell me what am I not doing here?

Thanks in advance...
 
Here's a silly question, but does the machine that has the web site on it
have all of the proper permissions set to allow incoming connections as well
as any firewall software allowing traffic? If you are using the built-in
web server, it uses a random port (but you can assign it to a static port),
so that needs to be checked as well.
 
Hi Scott,

To what application do I have to allow access in my firewall.

Once in my firewall app interface, I have to tell the firewall to allow
access to: what app?.

If I create a Web Site with VS using location File System, I suppose I have
have to grant access to the built-in web server, what application is that?,
because I have to tell the firewall and search it in my disc.

If I create the web site with location HTTP, I suppose that I have to grant
access to IIS, again, if IIS is the right app, what's the name of the IIS app
in my directories?

Regarding to the port, how do I check the port status, where, in VS or IIS?,
could you please tell me?,

Excuse me for my ignorance here...

thanks in advance...

--

Rafael Soteldo


Scott M. said:
Here's a silly question, but does the machine that has the web site on it
have all of the proper permissions set to allow incoming connections as well
as any firewall software allowing traffic? If you are using the built-in
web server, it uses a random port (but you can assign it to a static port),
so that needs to be checked as well.
 
Inline....


Rafael Soteldo said:
Hi Scott,

To what application do I have to allow access in my firewall.

Once in my firewall app interface, I have to tell the firewall to allow
access to: what app?.

It's not the firewall that needs access to an application. It's the
firewall that must grant access to incoming traffic on a specific port
(usually port 80 for IIS, but it's random using the built in VS web server
unless you've changed it in your project properties).
If I create a Web Site with VS using location File System, I suppose I
have
have to grant access to the built-in web server, what application is
that?,
because I have to tell the firewall and search it in my disc.

If I create the web site with location HTTP, I suppose that I have to
grant
access to IIS, again, if IIS is the right app, what's the name of the IIS
app
in my directories?

Again, you don't need to grant access to the web server - you need to tell
the web server to grant access to outside traffic. This is more easily done
with IIS by opening the IIS Administration Console and examining the
directory security section of the site's properties.
Regarding to the port, how do I check the port status, where, in VS or
IIS?,
could you please tell me?,

When using IIS, it will be port 80, when using the built-in web server, it
will be a random port (which won't work for remote access), so you'll need
to open up your project's properties and set the port to a static number,
like 80.
Excuse me for my ignorance here...

thanks in advance...
 
Sorry Scott:

But I still haven't got a clue, I know that the firewall has to grant access
to incoming traffic, but the firewall (McAffee) asks me to tell it what
application it's going to grant access to, so, how do I grant incoming
traffic to a specific port?.

And in VS, I browsed all links in ASP .NET Configurations, and I didn't find
a place where I could specify the port to set for traffic (which is random in
VS Web Server).

Simply put, I have some knowledege here but I don't know to do it in
practice...
 
Rafael,

In order to accomplish what you want to do, you are going to have to learn a
bit more about networking. I don't use the McAfee firewall, so I can't tell
you specifically what to do, but a good firewall should do more than just
grant access to specific applicaitons, it should be able to grant/deny
access to traffic on specific ports.

Also, for configuring the built-in server in VS, you'll have to examine the
properties of your VS project (right click on your project in Solution
Explorer and choose properties). If you are using the built-in server
(which is fine for simple development, but quite lacking for any serious
development), you'll need to assign it to a specific port.

Again, you are embarking on a new topic here and learning about networking
and security are the key.
 
Hi Rafael,

a silly question, but you are installing the site in IIS aren't you? ...and
not just the cut-down server that is used when you hit F5?
 
Hi BlackWasp:

I haven't installed it in IIS myself, but as the location is HTTP (recall
that when you create a project, VS gives you three options: Fyle System, HTTP
and FTP) VS already copied these files in a virtual directory in IIS.

So I checked the directory in IIS, it seems to be ok, it has Anonimous
access on, application security low (IIS), I don't know what else...

As I'm learning ASP.NET, I just wan't to have the satisfaction of publishing
a page on the internet, just to make tests, since all tests seem to work fine
in my own machines, afterwards, I'd shut it down to continue studying locally
in my machine.

The address I type in the other machine is like:
http://MyCurrentIpAddress/TheAppDirectoryInIIS/Default.aspx

Could you please help me here?
--

Rafael Soteldo


BlackWasp said:
Hi Rafael,

a silly question, but you are installing the site in IIS aren't you? ...and
not just the cut-down server that is used when you hit F5?
 
Hi Scott:

I finally did it. I checked the firewall configuration and found out the way
of opening port 80 which is the one that TCP/IP uses (that's the way I
interpret it so far).

Thank you...
 
Hi Rafael,

It's good that you got that port open. Just so you understand though, port
80 is not exclusively for TCP/IP, more commonly port 80 is for HTTP traffic.

-Scott
 
Back
Top