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 a PC and a Mac. My server is running on the Mac on port 3000, and I need to do test on my PC. How can I access my server from my PC which is in the same local network?

share|improve this question

migrated from stackoverflow.com Apr 5 '11 at 22:15

This question came from our site for professional and enthusiast programmers.

3  
A Personal Computer and a Media Access Control? –  esnyder Apr 5 '11 at 21:58
add comment

2 Answers

Get your Mac's IP address from Network preferences (let's say it's 192.168.1.2), then you should just be able to type

http://192.168.1.2:3000/

into Internet Explorer's address bar on the PC.

If you have the firewall enabled on your Mac, you'll need to ensure that whatever web server you're running on it is allowed to accept incoming connections.

share|improve this answer
    
Only works if the IP's configured properly in Apache (or whatever). Might have to set up a 'hosts' alias if it's on a name-based setup. –  Marc B Apr 5 '11 at 22:08
add comment

Just point your browser to the Mac's IP with the right port.

http://macs-ip:3000

share|improve this answer
add comment

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.