Network access for localhost

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Network access for localhost

Postby sprogo » 01. November 2005 13:18

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
sprogo
 
Posts: 14
Joined: 16. October 2005 18:09

Postby sprogo » 01. November 2005 14:03

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
sprogo
 
Posts: 14
Joined: 16. October 2005 18:09

Postby deepsurfer » 01. November 2005 19:04

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.
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby sprogo » 03. November 2005 00:44

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
sprogo
 
Posts: 14
Joined: 16. October 2005 18:09

Postby Wiedmann » 03. November 2005 02:43

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby sprogo » 03. November 2005 10:50

Thanks Wiedmann :)
sprogo
 
Posts: 14
Joined: 16. October 2005 18:09

Postby sprogo » 03. November 2005 10:52

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
sprogo
 
Posts: 14
Joined: 16. October 2005 18:09

Postby rus2589 » 03. November 2005 10:58

sprogo - if you tell us the name of the script this could help us more.
rus2589
 
Posts: 5
Joined: 01. November 2005 12:31

Postby sprogo » 03. November 2005 12:50

Name of the script is PPB.
sprogo
 
Posts: 14
Joined: 16. October 2005 18:09

Postby Wiedmann » 03. November 2005 13:12

Name of the script is PPB.

You mean PHP Portal Builder?

Remember: You have a lifetime technical support with this software.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby sprogo » 04. November 2005 00:49

No. I mean PhpProbid.
sprogo
 
Posts: 14
Joined: 16. October 2005 18:09

Postby Wiedmann » 04. November 2005 01:02

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 119 guests