Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two computer

Computer A connect to internet by wifi. (IP:

Computer B connect to computer A with direct LAN cable. (C.A IP:, C.B IP:

Computer A sharing internet connection with computer B.

Now, my problem is, computer B is running a web server (apache). How I setup computer B to expose web server to another device in wifi network (IP:

share|improve this question
up vote 0 down vote accepted

Try going into the Internet Connection Sharing options (under the Sharing tab in the network adapter properties), click Settings, and click Web Server (HTTP). Put computer B's IP address in the field where asked. This should expose Computer B's services to your LAN, and should allow you to access port 80 of computer B, when contacting port 80 of computer A -- based on my understanding.

I haven't personally used this feature but it looks very similar to port forwarding settings in routers. Internet Connection Sharing essentially sets your computer up to be a NAT router.

share|improve this answer
Hi, thanks for your help. But a little confuse here. The ethernet adapter or wifi adapter? And on computer A or B? Computer A running windows 7 and computer B (which host web server) running Mac OS X ML. – user187589 Apr 26 '13 at 14:57
The wifi is what you're sharing, so go into the properties for the wifi adapter, go to the Settings button, and check Web Server. Then in the Service Settings you'd need to put the IP of computer B, as you've listed above. – trpt4him Apr 26 '13 at 15:02
Thanks for your help, it works! – user187589 Apr 26 '13 at 15:28

Your Answer


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.