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?

http://localhostdoesn't really test what you want. Test with your local IP address, likehttp://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