If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Windows Server / Viewing localhost on another computer

Viewing localhost on another computer

Locked

Started by wwwursa on 4 Jan 2008, 9:21 PM · Views: 7,533

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
4 Jan 2008, 9:21 PM
#1
wwwursa avatar

wwwursa

Zen Follower

Join Date:
Oct 2007
Posts:
163
Plugin Contributions:
0

Post #1 by wwwursa

I have braindrain. I think this should be simple but can't think of the answer.

I have installed the Zen Cart program on my computer and will be sending it to the server soon.

However, before that I would like someone on a computer on my local network to take a look at it. This other computer can read and use my c drive.
QUESTION:

  1. Can someone on another computer on my LAN see my zen cart screen and order items?
  2. Can someone on another computer get in Admin and add products and categories?
  3. Can both of us look look at the same zen cart at the same time on different computers?
7 Jan 2008, 3:08 AM
#2
wwwursa avatar

wwwursa

Zen Follower

Join Date:
Oct 2007
Posts:
163
Plugin Contributions:
0

Post #2 by wwwursa

I doubt whether this can be done but it is relatively easy to duplicate on another computer. I simple copied all the files in xampp to the other computer. Then I reinstalled Xampp and changed the hosts file as mentioned in the ZC book.

CAUTION: I am very new to ZC and maybe just got lucky. Take the above information at your own risk.

7 Jan 2008, 11:15 AM
#3
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Post #3 by superprg

Is this windows system?
If yes
Go to Run->cmd

you will get cmd command prompt
Type hostname
you will get the computer name here
lets see the output is mkr456
then type http://mkr456
if this works on your pc, it should work in the network
and zen cart path should be
http://mkr456/zencart

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

10 Jan 2008, 2:33 PM
#4
wwwursa avatar

wwwursa

Zen Follower

Join Date:
Oct 2007
Posts:
163
Plugin Contributions:
0

Post #4 by wwwursa

My local computer is named "station1" . I can get to my storefront on another networked computer by typing "http://Station1/Store as the URL.

However, If I type in http://station1/store/admin as the URL and hit the enter key, the URL changes to http://example.com/store/admin/login.php?zenAdminID= and then a very long number. Then my Admin login appears but it is for the admin program on the networked computer that I had added Zen Cart to; not the Admin login on my main computer.

So, in summary, I can get to the storefront on another computer but not to the Admin.

The suggestion in the previous post was to enter http://station1/zencart results in an Error 404, URL not found.

10 Jan 2008, 4:43 PM
#5
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #5 by yellow1912

The suggestion in the previous post was to enter http://station1/zencart results in an Error 404, URL not found.

Because you installed your cart in a subfolder named store

However, If I type in http://station1/store/admin as the URL and hit the enter key, the URL changes to http://example.com/store/admin/login.php?zenAdminID= and then a very long number. Then my Admin login appears but it is for the admin program on the networked computer that I had added Zen Cart to; not the Admin login on my main computer.
Look like your admin/includes/configure.php was not set correctly.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

10 Jan 2008, 7:41 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

Also, if you are calling your computer "station1", then you can't use "example.com" in your HTTP_SERVER and HTTPS_SERVER settings. You must use "station1".

Either that or you need to edit all your computers' hosts files to know the correct computer IP address for "example.com" points to your computer. But that's a more complicated networking issue which your network support folks would be better to address.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Jan 2008, 4:36 PM
#7
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Post #7 by rebekah

I accomplished this by using my own particular computer's IP address.
(http://www.zen-cart.com/forum/showthread.php?t=85361&page=3)

Hold down the Windows key and hit 'R'. That will bring up the Run window.
Type in cmd and hit enter. That will bring up the Command Window.
Type in ipconfig and hit enter. This will put some information on the screen which includes your own internal IP address on your home network. It will probably be something like 192.168.1.101 or similar.

Try using your own IP in the two config files of ZenCart like this:

define('HTTP_SERVER', 'http://192.168.1.101');
define('HTTPS_SERVER', 'https://192.168.1.101');
define('HTTP_CATALOG_SERVER', 'http://192.168.1.101');
define('HTTPS_CATALOG_SERVER', 'https://192.168.1.101');

I am able to login to the Admin and see the shop from any computer on my home network using this method.

Hope that helps.

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

8 Feb 2008, 10:22 PM
#8
predmond avatar

predmond

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Post #8 by predmond

I have xampp (portable edition) installed on a flash drive and also an external harddrive. That way you can put it into any computer and view your site.
The only thing you need to watch is that the drive name stays constant across computers. If you install it, and it is 'E:', then put it into another computer where it is 'D:' it seems to cause problems.

Doesn't really answer your question, but might be another option.