remote vs localhost view

Asked by dewittdale

http://IP:7080 in browser doesn't bring up ST. http://localhost:7080 does. Are both methods available and I'm missing a step? Punching a port 7080 in both router did not alter the disconnect with IP. (Ubuntu 8.0.4 VirtualBox 1.6 on XP)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Henning Eggers (henninge) said :
#1

What am I missing here?
What do you mean by "ST"? What does "punching a port in both router" and "disconnect with IP" mean? I have never used Virtualbox, are these terms special Virtualbox terms? If not, please provide a more detailed description of the Software you are using and what you are trying to accomplish.

Meanwhile: Please send along the output of the following command on the machine you are trying to reach:
netstat -tan | grep 7080

Hope I can help!
Henning

Revision history for this message
Henning Eggers (henninge) said :
#2

Sorry, that wasn't supposed to be an answer but an information request....

Revision history for this message
dewittdale (dewittdale) said :
#3

root@804:~/Plone-3.1/zinstance# netstat -tan | grep 7080
tcp 0 0 127.0.0.1:7080 0.0.0.0:* LISTEN
root@804:~/Plone-3.1/zinstance#

ST stands for SchooTool. (It's common abbreviation in the technical documentation. On http://www.schooltool.org/documentation/glossary you'll find reference using it in ST's Plone CMS navigation menu.)

Punching a port is slang for adding a port in the router manufacturer's web server 'port forwarding' service. Sorry for borrowing a term from a different venue. (and --"both" router-- was a typo made when I revised the Question, forgetting to erase "both" when prior I had added a firewall issue having no bearing on an HTTP view (the nature of this question).

Connect and "disconnect" as terms which lead to your confusion were chosen since TCP/IP uses electricity. Disconnect then refers to no browser request packet being sent.

VirtualBox is a non-proprietary virtual machine recently taken over by Sun Microsystems. (It should be of no consideration in this question but I included it merely since its inclusion describes the complete elementary configuration of the zope server serving ST.) (though it allows XP computers to host ST)

As to what I'm trying to accomplish: I merely want to view ST from a remote location. I want to enter http://<IP Address>:7080 and view ST from where ever. Is this a security design limit I'm trying to violate?

Revision history for this message
dewittdale (dewittdale) said :
#4

This question is not solved.

Revision history for this message
dewittdale (dewittdale) said :
#5

I suppose this might be a quick fix to the need to connect remotely. From a terminal type ssh -XC user@server firefox But the problem with that is that the ssh client and server has to be installed as appropriate to which ever location in space. Browsers are always installed whereas ssh clients and servers aren't.

Revision history for this message
Henning Eggers (henninge) said :
#6

Oh, its a zope server! Great, I know a little bit about that and I have a running Plone 3 instance for reference. Why didn't you say so in the first place? ;-) (BTW: The first two lines of your first answer made all the difference)

- Go to the "etc" subdirectory of your "zinstance" directory.
- Find the file "zope.conf" and edit it.
- Find the line that says "ip-address 127.0.0.1" and comment it out by putting a "#" at the beginning of the line.
- Restart Zope (Plone for that matter).
- Retry connecting. You're done.

Background information: It is quite common to run Zope behind Apache using mod_proxy so no outside access to zserver is needed. That is probably why it was configured that way but you seem to have no Apache set up.

Have fun with ST!
Henning

Revision history for this message
dewittdale (dewittdale) said :
#7

I'm sorry but from the information you've given me I cannot navigate to the zope server serving ST. My experience with zope 2x has generally been in standalone situations. From what I gather ST is spread out over everywhere. Using the properties tab in synaptic provided dead ends for my extremely literal mind. From the tone of your response I believe you might have misinterpreted my terminal entry to mean that I had already sniffed around in that territory. No. Just a simple navigational tree would save an immense amount of time. Alas that was not provided. If I could find the zinstance of ST I'd be on easy street. Fat chance.

First things first. Apache can wait.

Revision history for this message
Henning Eggers (henninge) said :
#8

Well, I was talking about these two lines:

root@804:~/Plone-3.1/zinstance# netstat -tan | grep 7080
tcp 0 0 127.0.0.1:7080 0.0.0.0:* LISTEN

The first one tells me that you have found a zinstance of a Plone 3.1 installation and I was assuming that this is the instance you are trying to reach from your browser.
The second one tells me that whatever process is listening on port 7080 (which again I am assuning is the Zope/Plone instance) is only doing so on the loopback interface. That is why you can only reach it using "localhost" in your browser.

Are any of my above assumptions wrong?

Now, within the "zinstance" directory (namely /root/Plone3.1/zinstance) there is a subdirectory called "etc" which contains a file called "zope.conf". Open a text editor of your choice and open the file "/root/Plone3.1/zinstance/etc/zope.conf". Edit it as described (you should find a comment in there explaining more) and restart Zope/Plone/ST. There are several ways that could be done, depending on how it was started. Again, I am assuming that you have (re)started ST before and know how to do that.

Hope I was clearer now! Forget about what I said about Apache, as it was only background information not needed to solve your current problem.

Henning

Revision history for this message
dewittdale (dewittdale) said :
#9

Yes to "Are any of my above assumptions wrong?" I have ST installed wherever the zserver is I know not. I also have a rootless Plone 3.1.1 buildout installed default under the home directory. That is where my terminal snippet was executing the netstat command. It only added to confuse yet cue you on another issue. That is my familiarity with zope. That aside. I have no problem fetching my plone instance using the ISP's IP with the semicolon and port number. The localhost as well (and have read all the README.txt that are around there). At this point I merely can't find the zope that runs ST. I figure if I could find that, I could naturally find my way to the configuration files, though I'm not familiar with the directory architecture of that verses zope 2. I think it's ./bin/buildout which resets any configuration changes, executing that command; with the terminal situated one up on the tree from that location. I worked the apache rewrite rules for my current plone 2.5.3 windows install. But I'm no expert on apache.

Revision history for this message
Henning Eggers (henninge) said :
#10

I found that ST is hosted on launchpad as well. Maybe they could help. I have to admin, I am a little bit confused now as to what your problem really is. If the question should be: "Where do I find the zinstance for my ST installation?", you probably should ask that over there.

https://answers.launchpad.net/schooltool

Henning

Revision history for this message
dewittdale (dewittdale) said :
#11

My problem is in using http://<myIP-Address>:7080 to view ST. All other questions where related to how to get to that goal. Do I have to set up apache in front of ST to do that? You haven't said so explicitly so I'll assume not. I figured if the zserver can be configured you'd be the one to know.

Revision history for this message
Henning Eggers (henninge) said :
#12

No need to set up Apache. Just configure zserver by editing "zope.conf" as described above.
It is about the "ip-address" configuration line in that file. If this line is commented out (that is deactivated by putting a # in front of it), the default configuration for that command is active which is that zserver listens on all IP addresses of the host. Then you should be able to connect, using the ethernet IP address, not just the loop back address.
FYI, "localhost" resolves to "127.0.0.1" which is the loop back aaddress.

Revision history for this message
dewittdale (dewittdale) said :
#13

Right. Understood. But where is the zope.conf file in the directory tree. All I need is an instruction whereby someone on this planet types the directory tree: /A/B/C/D/E/zope.conf Voila. Then I edit it and walk into the sunset a happy camper. So far I've been getting a complete runaround.

Revision history for this message
Henning Eggers (henninge) said :
#14

"/root/Plone3.1/zinstance/etc/zope.conf", like I said before. Unless you have more than one Zope/Plone installations on the host.

Can you help with this problem?

Provide an answer of your own, or ask dewittdale for more information if necessary.

To post a message you must log in.