473,378 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Give all computers in a network to access localhost

Thew
69
Hi

I just installed apache on my computer (with easyphp).
It works fine. But now i have a question.

I have at my house an network (just a normal house network, where all computers are connected to, so they all can acces the internet).
Is it possible that all my computers can get acces to the localhost here on my computer?
Sep 9 '10 #1
16 7815
Niheel
2,460 Expert Mod 2GB
You could setup the the dev environment in a VM. Then assign that VM it's own IP on the network. Every machine then has the following in the HOSTS file.

192.168.1.XXX devdomain.com

So everytime you access devdomain.com it will access the VM.
Sep 9 '10 #2
Thew
69
Iam sorry, please explain it better, i am new to this =)
Sep 9 '10 #3
Oralloy
985 Expert 512MB
@Thew,

There are a few possibilites on how to go about it. It depends on how your home network is set up.

If your local router is also providing DHCP and DNS services, then you can probably access the local computers by their existing names.

If not, then you need to know your server's IP address.

Windows:
IPCONFIG /SHOW /ALL

Linux
ifconfig

You should see a system address - it'll probably look life four small integers separated by dots. Typically it'll start with 192.168 but it is not guaranteed to be so.

Let's assume you see 192.168.0.4 as your address.

If you don't have DNS locally, you're going to have to use the addresses or enter names in the hosts file.

Typically your URLs will look something like:
The problem with DNS is that it dynamically allocates addresses. If you leave a computer off for some period of time, the address is returned to the pool, and your computer may get a different address next time you turn it on.

So, if you put names and addresses in your hosts files, be aware that they may become obsolete.

Now that you're completely confused, think about it, look up DNS and read a little bit, and then we'll help you sort things out.
Sep 10 '10 #4
Thew
69
@oralloy i've tried it (with local DNS), but when i checked the URL:

http://192.168.0.1/service/index.php,

I came up with a popup login. Is that normal? Or not?
Sep 10 '10 #5
Thew
69
Anyone? Please?
Sep 10 '10 #6
Oralloy
985 Expert 512MB
@Thew,

Sorry for the long delay. I'm on the Amerikan Left Coast, so my hours are a little skewed from most Bytes usesr. It's 6:00 and I just got into work.

Is the pop-up prompting for login, or something else?

If you can give us the specifics of the pop-up, that'll help.
Sep 10 '10 #7
Thew
69
@oralloy

Yes, its a popup login, where it asks for a username and a password, to let me connect to 192.168.0.1?
Sep 10 '10 #8
Oralloy
985 Expert 512MB
Exactly.

Are you certain that 192.168.0.1 is the IP address of your server, and not the router?

Remember that the IP address should be the IP of the computer running easyphp.

BTW, I have about two hours, then I'm gone for the weekend. Hopefully we can get this done by then. If not, you many need to start a new thread to get some of the other folks to help finish things off.

Luck!
Sep 10 '10 #9
Oralloy
985 Expert 512MB
Oh, I had another thought, too. Is your Web server only serving to port 127.0.0.1, or is it serving to the computer's address, as well.

This is important, because if it's not serving to your computer's external address, none of your other systems will be able to access the easyphp server.
Sep 10 '10 #10
Thew
69
That was just the problem, so i think this will be inpossible. But thanks for helping, too bad it wasnt usefull.
Sep 10 '10 #11
Oralloy
985 Expert 512MB
@Thew,

Don't give up yet.

Do you know the IP address of the server running easyphp?

If it's a windows machine, you can pop a DOS box and run the command
Expand|Select|Wrap|Line Numbers
  1. ipconfig /all
to see your IP address. Look in the output, there should be a line "IP Address". Don't just look at the numbers.

Then you can run
Expand|Select|Wrap|Line Numbers
  1. netstat -a
to see all the ports your computer is "listening" on.

If the port shows as your computer name (or some variation thereof), you're good.

If the port shows listening on 127.0.0.1, then it's localhost only.

Luck!
Sep 10 '10 #12
Thew
69
Hey

When i do ipconfig /all, it returns at IP-Adress:

192.168.0.1 and at netstat -a it returns a list with

<myaccountname>:<some port numbers>
<myaccountname>:<some port numbers>
<myaccountname>:<some port numbers>
<myaccountname>:<some port numbers>
<myaccountname>:<some port numbers>
<myaccountname>:<some port numbers>
...

What can i do with this data to make it happen?
Sep 11 '10 #13
Oralloy
985 Expert 512MB
Is your account name the same as your computer name?

What does it say next to ports 80 and 443?
Sep 13 '10 #14
Oralloy
985 Expert 512MB
Still, it seems like your web server is running on the external IP address, and not just on the loopback address (127.0.0.1).

Next, try accessing your own server by using a browser on the same computer:

Expand|Select|Wrap|Line Numbers
  1. HTTP://##.##.##.##/the-rest-here
Hopefully it'll connect locally from the same computer.
Sep 13 '10 #15
Thew
69
'Hopefully it'll connect locally from the same computer.'

Well it doesnt. Shall i check on the other computers what ipconfig /all and netstat-a gives?
Sep 16 '10 #16
Oralloy
985 Expert 512MB
I'd hoped you'd managed to figure it out, and simply hadn't followed up.

I'm off for three days in about 10 hours, be forewarned.

Unfortunately at this point I'm a little confused.

Do you know which port your web server is using?

Can you try running the following and posting the result here:
Expand|Select|Wrap|Line Numbers
  1. ipconfig /all > result.txt
  2. netstat -a -b >> result.txt
  3.  
Then we can see what the addresses are with a good degree of certainty.
Sep 16 '10 #17

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Joseph | last post by:
Hello We have a web application written in ASP.Net that calls an external C# program (.exe). This C# program needs to access data from a different server and is not able to do so. We use impersonate...
5
by: qvx | last post by:
I would like to test my CherryPy application in varying network conditions, ranging from localhost full speed to low badwidth (ie. 14.4kbps) and variable latency from milliseconds range to seconds...
8
by: Noni Ledford | last post by:
Hi - I have a database on a network, and each user logins using a shortcut from his PC to the shared database. There is a table created by a make-table query that locks up whenever more than one...
5
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to...
3
by: mehdi_mousavi | last post by:
Hi folks, Consider a client program that uses .NET Framework 2.0, and the Transaction namespace, to do some update/insert against a given database using the SQL provider: using...
0
by: SimonSez07 | last post by:
i have a vbscript that i use to add/modify dns zones on my nameserver from my iis 6.0 server accross the network using wmi. (both servers are win2k3) my script works fine when executed using...
3
by: rajamurugank | last post by:
Hi, Good Morning friends, I am new in DB2 database.we have DB2(9.1) database on zLinux.I can access the DB using the admin user. But,i can't access the DB as a normal linux users. Now the...
0
by: parez | last post by:
Hi, I have a setup and deployment project. I am using vs 2008. During the setup process, I want to give full security access to run a network exe. How do i do it? I can create a batch...
3
by: philqw78 | last post by:
Using quite a simple Access DBase across the network I occasionally get this error: The dbase is split with front ends on user's PC's and a back end on the shared drive. This has happened to me...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.