Page 1 of 1

Network access for localhost

PostPosted: 01. November 2005 13:18
by sprogo
Hi everybody,

I have installed XAMPP on a win98se computer and working quite good with no problem I've faced till now.

I'd like to check my demo web site lcoated on localhost through local network (but this is not a server based network, there are two win98se pcs communicatiing over an ethernet hub.).

Lets say localhost on PC1, and PC2 is the client (wants to browse web pages on PC1). Below address is working correctly, browser show page without any problem:

http://PC1/localhost/website

But the problems starting after this point. If you click on any link on the page (ie. http://PC1/localhost/website/anotherpage.php )
, browser remove PC1 part of the address and attempts to redirect link http://localhost/website/anotherpage.php .

Does anyone know a solution about this?

Thanks in advance guys
Sprogo

PostPosted: 01. November 2005 14:03
by sprogo
I have just noticed that xampp and its links in the admin page are working properly from remote computer (PC2). When I write either http://PC1/ or http://10.0.0.2/ in the browsers address line, xampp welcome page opens and all links in the page are working properly.

It is still not working for my websites located under /xampp/htdocs directory.

Regards
Sprogo

PostPosted: 01. November 2005 19:04
by deepsurfer
construct:

PC1 is with XAMPP, this PC1 have the static LAN-IP 192.168.0.1

PC2 is a Client in the LAN and have static LAN-IP 192.168.0.2


On PC1 (sitting in front of it) you type in the browser http://localhost and the XAMPP is coming up.
in the xampp you have installed your pages in \xampp\htdocs\mypage
also you type http://localhost/mypage and you smile for happyness :)

On PC2 you type http://PC1/mypage or http://IP-of-PC1/mypage and you can smile ;)

Your ask-text have an error in typing to see the right pages.
Did you see the differences of your typing and my answer ?

explanation:

\xampp\htdocs = http://localhost , from PC2 is this http://IP-of-PC1

\xampp\htdocs\mypage = http://localhost/mypage , from PC2 is this http://IP-of-PC1/mypage

\xampp\htdocs\mypage2 = http://localhost/mypage2 , from PC2 is this http://IP-of-PC1/mypage2

\xampp\htdocs\mypage\pictures = http://localhost/mypage/pictures , from PC2 is this http://IP-of-PC1/mypage/pictures

hope you can understand my bad english and hope you see what i mean.

PostPosted: 03. November 2005 00:44
by sprogo
hello deepsurfer,

Thank you very much for your long explanation. May be I was not able to describe the situation clearly as I am not familiar with network jargon.

You are right, I am doing exactly as what you explained here. And all web pages are working. But when I click on any link on my personal web site from PC2, the link goes to http://localhost/mywebpage.html. But it should have gone to either http://PC1/mywabgepage.html or http://IP-of-PC1/mywebpage.html. But this occurs only for my personal web site. When I browse XAMPP's admin pane, all links in admin pane working very good. It takes me to the right place such as http://PC1/xampp/Phpmyadmin/index.php .

It looks like a relative address problem, but this is a professional script for installing on web servers and if it uses an absolute address instead of relative address, no one can reach the webpages. So it shoul be something else. The script and all other files are written in php code.

There is also one DNS server in system (it is a DSL router modem - Speedtouch 510) and it gives uniqe static IP number to the each PC.

Can I redirect all client requests of PC2 to http://PC1 whenever it requests http://localhost ? Or may I rename http://localhost as http://PC1 in DNS server or in somewhere else ?

sorry for such a long long long message.
Regards
sprogo

PostPosted: 03. November 2005 02:43
by Wiedmann
It looks like a relative address problem, but this is a professional script for installing on web servers and if it uses an absolute address instead of relative address, no one can reach the webpages.

So the script is not realy professional ;-)

You should ask the author of that script how to configure it to work behind a nat router.

PostPosted: 03. November 2005 10:50
by sprogo
Thanks Wiedmann :)

PostPosted: 03. November 2005 10:52
by sprogo
Hi Weidmann,

It is very difficult to ask the author so thread is still open.. I am ready to follow your suggestions other than asking to author.

Regards
Sprogo

PostPosted: 03. November 2005 10:58
by rus2589
sprogo - if you tell us the name of the script this could help us more.

PostPosted: 03. November 2005 12:50
by sprogo
Name of the script is PPB.

PostPosted: 03. November 2005 13:12
by Wiedmann
Name of the script is PPB.

You mean PHP Portal Builder?

Remember: You have a lifetime technical support with this software.

PostPosted: 04. November 2005 00:49
by sprogo
No. I mean PhpProbid.

PostPosted: 04. November 2005 01:02
by Wiedmann
Then you should get a answer here:
http://www.phpprobid.com/client/support/pdesk.cgi

BTW:
I don't think that this software can work on Windows.