Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2007
    Posts
    163
    Plugin Contributions
    0

    Default Viewing localhost on another computer

    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?

  2. #2
    Join Date
    Oct 2007
    Posts
    163
    Plugin Contributions
    0

    Default Re: Viewing localhost on another computer

    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.

  3. #3
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Viewing localhost on another computer

    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!!

  4. #4
    Join Date
    Oct 2007
    Posts
    163
    Plugin Contributions
    0

    Default Re: Viewing localhost on another computer

    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.

  5. #5
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Viewing localhost on another computer

    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

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Viewing localhost on another computer

    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.

  7. #7
    Join Date
    Mar 2006
    Posts
    194
    Plugin Contributions
    0

    Default Re: Viewing localhost on another computer

    I accomplished this by using my own particular computer's IP address.
    (http://www.zen-cart.com/forum/showth...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. #8
    Join Date
    Apr 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Viewing localhost on another computer

    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.

 

 

Similar Threads

  1. Firefox views on one computer, not another
    By FukienMan in forum General Questions
    Replies: 3
    Last Post: 9 Dec 2011, 03:29 PM
  2. Problem moving site to another computer on xampp
    By outline in forum General Questions
    Replies: 12
    Last Post: 24 Jul 2011, 04:16 AM
  3. Accessing ZenCart from another computer
    By emf2718 in forum Basic Configuration
    Replies: 1
    Last Post: 30 Oct 2010, 02:11 AM
  4. Links and Images point to localhost when browsing from another computer
    By customgt in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Jul 2008, 03:34 PM
  5. Can my local Zen Cart be seen on another networked computer
    By wwwursa in forum General Questions
    Replies: 1
    Last Post: 26 Dec 2007, 02:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg