Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an Apache server in my own computer, I can access it through http://localhost and http://xxx.xxx.x.xxx. Both show me It works in the webpage. When my peer trying to connect to my Apache through http://xxx.xxx.x.xxx, the browser seems refuse to connect to my Apache.

I usually develop my web app using localhost to test out the result, may I know how can I let my peer to connect to my Apache so that there can look at the result from my local PC without deploy it to the server?

share|improve this question

migrated from serverfault.com Dec 19 '11 at 17:28

This question came from our site for professional system and network administrators.

1  
Testing with http://localhost doesn't really test what you want. Test with your local IP address, like http://192.168.1.32 (or whatever). That will at least make sure your web server is listening to the right address. –  David Schwartz Dec 19 '11 at 11:40

2 Answers 2

most common cause is firewall blocking the connection, to know for sure though you need to more info, eg. can the peer ping the ip address of your machine? do you get a specific error message in ie when trying to access the page, does anything show in your apache logs, etc.

share|improve this answer
    
My peer's computer can ping my IP, and the IE is showing the message "web page can not be display". The Apache error.log is showing favicon.ico does not exist. –  huahsin68 Dec 20 '11 at 2:13

What is "your peer"? Is it a computer on the same network ? On the internet ? What ?

In the former case, a firewall blocking port 80 is the most likely cause.
If you're trying to access it from outside your own network, look at your router.

share|improve this answer
    
FYI, it is within the same network. I have tested to use different port number for Apache, it still showing the page can not be display error in the web page. BTW, I don't know how to check whether the port is being blocked? –  huahsin68 Dec 20 '11 at 2:16
    
to test your ability to access a port on a remote machine, try using a port sniffer (sectools.org/tag/sniffers), wireshark tends to be popular on here though i've not used any myself yet. –  PrivateSniper Dec 20 '11 at 14:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.