180 pts.
 Opening Port 80
How can i open the port no 80.It is closed or is in use by another program.I use Windows xp

Software/Hardware used:
ASKED: October 24, 2011  12:16 PM
UPDATED: October 26, 2011  2:01 PM
  Help
 Approved Answer - Chosen by Hahahaa (Question Asker)

"I can view the website made by me in my own computer but i can’t view it from another computer."

That's why it is important to provide enough details. I thought you were getting errors when configuring your apache server because of this part of your question: "...is in use by another program"

Please, keep in mind that we don't know your set up nor do we know what you are trying to do or how you are trying to do it, so we need you to provide all the necessary details to help you troubleshoot the issue.

Gabe9527 suggested turning the firewall off. That would be the first thing to try. If that doesn't work, then answering the following question would be a good idea (please be specific):

"But according to my windows Firewall it is used by another process"
How (and when) exactly is the firewall telling you that the port is used by "another" process ?

"I can view the website made by me in my own computer..."
How are you viewing it ?

"...but i can’t view it from another computer."
Are you talking about another computer on the same network ?
How are you trying to view it ? (what is the URL you are trying ?)

---------------------------

P.s. I have removed Harisheldon1960's answer from the Wiki, since it was incorrect and misleading.

ANSWERED:  Oct 25, 2011  2:58 PM (GMT)  by Hahahaa

 
Other Answers:

Port 80 is used by your browser for web surfing, it is defaulted to that. Unless you configured it to something else, or someone is playing games with you, it is always open and ready for the Internet.

Last Wiki Answer Submitted:  October 24, 2011  7:02 pm  by  Harisheldon1960   1,420 pts.
Latest Answer Wiki Contributors:  Harisheldon1960   1,420 pts.
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Why do you want to “open” port 80 ? (or maybe the right question would be “why do you think you need to open port 80 ?” )

 63,535 pts.

 

I am trying to host a website using Apache server.That’s why i want to know how to open the port 80.If i can use another port then please tell me.

 180 pts.

 

Ok, you are trying, but, are you getting errors ? Why do you need to “open” the port ?

If you are getting errors saying that the port is already in use, then you need to look for another web server running on your machine, which most likely would be IIS.

If that is the case you could completely remove IIS (control panel -> Add/remove programs ->Add/remove windows components) or stop it (control panel -> Administrative Tools ->Services)

If IIS is not running, you could use TCPView to identify the process that has port 80 in use. It is a Sysinternals tool that will show information about TCP and UDP endpoints on your machine.

 63,535 pts.

 

Harisheldon196: Browsers connect to a remote port 80 on the server that serves the pages you navigate to. They don’t listen on the local port 80.

Also, you don’t “configure” your browser to use a specific [remote] port. If you want it to connect to a different port, you just have to specify it in the URL.

The local port used by internet browsers is transparent for the user. It is assigned by the OS and it doesn’t not interfere with the standard ports used for services such as http, ftp, etc.

 63,535 pts.

 

I haven’t installed IIS in my system.According to TCPView there are no process using port 80.But according to my windows Firewall it is used by another process.I have a router(adsl connection). I can view the website made by me in my own computer but i can’t view it from another computer.

 180 pts.

 

Turn your Firewall off on your machine and try to access your webserver. If this works then as it look your firewall is blocking connections… I know this is obvious but just check to be sure. If this is attached to the outside world and unprotected then you might want to try this without internet access.

Then add a rule to allow Port 80 access.
http://www.windowsecurity.com/articles/customizing-Windows-Firewall.html

 10,615 pts.

 

I have already turned off my firewall from services.msc but it doesn’t work..I have configured my apache from this site http://www.techmalaya.com/2007/09/02/beginners-guide-install-apache-2-web-server-on-windows-local-installation/ and http://www.techmalaya.com/2008/06/09/apache-22-virtual-hosting/ I am trying to view my site from another computer from another network.

 180 pts.

 

And i have changed Listen to
#Listen http://www.computer.comp.com:80
Listen 80
and
AllowOverrideNone to AllowOverride All
in httpd.conf file

In the error log i have this-
Server built: Sep 9 2011 10:26:10
[Wed Oct 26 09:41:52 2011] [notice] Parent: Created child process 3272
[Wed Oct 26 09:41:53 2011] [notice] Child 3272: Child process is running
[Wed Oct 26 09:41:53 2011] [notice] Child 1732: Released the start mutex
[Wed Oct 26 09:41:53 2011] [notice] Child 3272: Acquired the start mutex.
[Wed Oct 26 09:41:53 2011] [notice] Child 3272: Starting 64 worker threads.
[Wed Oct 26 09:41:53 2011] [notice] Child 3272: Starting thread to listen on port 80.
[Wed Oct 26 09:41:54 2011] [notice] Child 1732: All worker threads have exited.
[Wed Oct 26 09:41:54 2011] [notice] Child 1732: Child process is exiting

 180 pts.

 

You need a public ip address to make your site accessible from the internet. Do you have one ?

Also, you will need to register your domain on a DNS server, in order to make it accessible through the domain name.

 63,535 pts.

 

Well, connecting to the site on http://localhost/ means that apache IS UP AND RUNNING – so no other process is bound on port 80

Inability to connect to the server from another machine after switching off the localhost firewall tells us that there is another firewall somewhere! You don’t provide details about your network and where the test clients are located – on the LAN or on the Internet.

So, let us know is your server on the same LAN with the client(s), or the server is a home PC connected through a router/gate to an ISP and you trying to access it from a client(s) on the Internet – in the latter case you have to configure port forwarding through the gate AND to arrange a static IP with your ISP, and then continue testing…

Petko
.

 3,120 pts.

 

P.S. And, BTW, by changing AllowOverride to All you are looking for troubles from your future local users…

 3,120 pts.