Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is is possible to connect two computers with a lan cable and then run a server on one computer and access it to another computer. For example running xampp on one computer and open its home page using other computer's browser.

If yes then how to do so? what ip address should i use?

PS: computers are isolated i.e. not connected to any other external environment.

Thanks in advance

share|improve this question

migrated from stackoverflow.com Feb 3 '11 at 23:11

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

2 Answers 2

up vote 1 down vote accepted

No problem. Assign 192.168.0.1 to first computer and 192.168.0.2 to second. You are done.

share|improve this answer
    
Thanks gor. i will try it –  codeomnitrix Feb 4 '11 at 8:51

Other options include leaving it at dhcp, and using link local addresses http://en.wikipedia.org/wiki/Link-local_address

IPv4 will be 169.254.X.X, and IPv6 will use FE80:....

I don't know if the IPv4 address will be stable, so you may need to assign like gor says. IPv6 should be stable, unless privacy options are enabled.

share|improve this answer
    
Thanks christopher i will try it. –  codeomnitrix Feb 4 '11 at 8:51

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.