Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 build a site working on my localhost using xampp on windows7. Now, I my colleagues want to access and use that site in our small office.

I tried to access the site using IP address of my own system. but some urls are redirecting to localhost... and there is no localhost at other computers in my office.

the problem is the site is built with CodeIgniter framework so it containes a constant site_url which it's value is http://localhost/site.

I know that I need a server (or domain controller) and I have to put my site on that server so all other computers would access to it.

I can't figure out how to implement what is need without a computer used as server in our office.

Can I use a virtual machine?

share|improve this question
up vote 1 down vote accepted

Just change that site_url from "http://localhost/site" to "http://your.ip.add.ress/site" (use your ip address). It should work then (if this is the only place where the url is hardcoded in your app).

share|improve this answer

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.