[SOLVED]connecting from another pc....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

[SOLVED]connecting from another pc....

Post by pleigh »

is it possible for me to connect to my php pages from another pc?to be clear....for example, this is my pc were i work all of my php pages, and someone from within our workgroup would like to view my page from another pc...i tried to do this

http://my.ip.address:8080/myfolder/index.php

but it returned me nothing...

is it possible for them to view my page??if yes, how?i also believe that the port i'm using is 8080, but how will i know what port i'm using?

many thanks...[/quote]
Last edited by pleigh on Wed May 18, 2005 8:34 am, edited 1 time in total.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

leave out the port number, now try it, i know its possible because i do it

but as far as i know, i didnt configure it in any special way

i also helps if you make sure apache is running :wink:

edit: also if its linux, make sure correct file case is used
Last edited by malcolmboston on Tue May 17, 2005 7:39 am, edited 1 time in total.
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

yes...tnx....i tried to remove the port...but nothing happened....anymore ideas??
:)
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

it could be a permission issue, did you set it up to only allow access from 127.0.0.1? (localhost)

also if its on linux, check file case
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

it's windows im using....how will i know if i set the permission you are pointing??thanks again...:)
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

cant remember the actual command but its at the bottom of httpd.conf called something like:

allowed_hosts:

if allowed_hosts is set like

allowed_hosts: 127.0.0.1

then it will only allow connection from your own machine, you want to be using something like

allowed_hosts: *
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

thanks....i am using IIS here...
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

can i ask what the configuration is if i am using microsoft IIS?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

are you connect to the internet though a router or just a modem?

If you are using a router, you will need to set up portforwarding.

Or is all this on a local network?
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

yes, i am connected to a router...i don't have any idea about configuring portforwarding...can you teach me??

tnx a lot...
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

oh yah...slipped my head...hehehe...thanks...:D
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

i read some articles, but is it necessary for me to configure the router where all i want is that the computer next to my table can view my pages...as well as the other computers connected to our VPN
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

This is how our office network is setup.

We have 10 computer all networked.

Each computer has an assigned IP address.

1 of these computers acts as the server and its IP address is 192.168.1.2

to access the PHP pages that are on that server from any other machine, all i do is type http://192.168.1.2/ into my browser.

You will not need to configure your router if this is the setup that you are aiming for becuase you aren't making and outside connection to the internet...it is on you local network.
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

disabling the firewall from my computer solved the problem...thanks guys for the ideas.... :D
Post Reply