To add to bill's comment, you may want to temporarily disable the windows
firewall to see if that helps. If it helps, you can add a rule to enable
the port

You may also want to run

netstat -a -n

after launching jhs

and look for the line(s) with 65001. Paste it here as that can be helpful
in understanding how the the socket is being bound. Compare that line to
the apache line which is working (e.g. if apache is running on port 80,
look for the output of netstat -a -n which includes :80)



On Mon, Oct 31, 2016 at 10:56 PM, bill lam <[email protected]> wrote:

> If your computer is inside a LAN that means the computer is
> behind a firewall.  You should port forward 65001 to your
> computer. This may be done by setting the router, but this
> depends on whether you have administrative right of the router,
> or you need helps from sys-op.
>
>
> Вт, 01 ноя 2016, Ian Shannon написал(а):
> > Hi there,
> >
> > Thanks for the interest in helping.
> >
> > However before requesting assistance I did get a copy of the config
> > file and change it as suggested in the comments.  (Same as you
> specified).
> >
> > I then start a blank jconsole and load my modified config file
> (AirPredict.ijs
> > See below for contents) - it has the load 'core' and init_jhs_ verb call
> > that are necessary to start the web server.
> >
> > By putting the load 'webPage4.ijs' before the init_jhs_ I do not
> > need to visit the /jijx page.
> >
> > =====
> >
> > I have tried many combinations of LHOK , BIND, USER and PASS but it
> > makes **NO** difference at all.
> >
> > LHOK=.0 with USER and PASS set still allows access to
> > localhost:65001 without any request to *login*
> >
> > Similarly when browsing to the host name (OEH25281:65001) there is no
> > difference whether USER and PASS are set or not: no answer
> > (or request to login) is sent back to the browser.
> >
> > I cannot find any instructions on how to set/use the username/password
> > Functionality.  Because the application is public access (within my
> > organisation) no authentication is necessary.  I acknowledge that I
> > will need to later ensure that the whole application is safe by blocking
> > jijx  access.
> >
> >
> > Ian
> >
> > Ian Shannon
> > Science Strategy Branch
> > Science Division
> > Office of Environment and Heritage
> > PO Box A290
> > Sydney South
> > NSW      1232
> > T: +61 2 99 955 490
> > E: [email protected]
> >
> > “Hang on to your youthful enthusiasms -- you’ll be able to use them
> better when you’re older.”
> > ― Seneca
> >
> >
> > AirPredict.ijs
> > ==============
> >
> > NB. load JHS scripts, configure, and init server
> > NB. command prompt> ....jconsole ~addons/ide/jhs/config/jhs65001.ijs
> >
> > NB. create other configs by copying this file to ~config, renaming, and
> editing
> > NB. e.g., copy to ~config/jhs65002john.ijs and edit port/user/pass to be
> 65002/'john'/'abra'
> > NB. command prompt> ....jconsole ~config/jhs65002john.ijs
> >
> > NB. see jhelp|config for info on port access, firewall, ip address,
> router, etc.
> >
> > load '~addons/ide/jhs/core.ijs'
> > require 'standard'
> >
> > smoutput 'setting port <- 65001, BIND <- any '
> >
> > PORT=: 65001   NB. private port range 49152 to 65535
> > LHOK=: 1       NB. 0 if localhost requires user/pass login
> > BIND=: 'any'   NB. 'any'  - access from any machine
> > USER=: ''      NB. 'john' - login
> > PASS=: ''      NB. 'abra' - login
> > TIPX=: ''      NB. browser tab title prefix - distinguish sessions
> >
> > cwd 'W:/webRoot'
> >
> > startNow =: monad define
> > try.
> > load 'q:/rScripts/WebPage4.ijs'
> > catch.
> > smoutput 'WebPage4 failed'
> > end.
> > )
> >
> > startNow ''
> >
> > initNow =: monad define
> > try.
> > '' init_jhs_ ''
> > catch.
> > smoutput 'init_jhs_ failed'
> > end.
> > )
> >
> > initNow ''
> >
> >
> >
> > Firefox message when browsing to the host name
> > (http://oeh25281:65001/AirQualityFramework)
> > ==============================================
> >
> > Unable to connect
> >
> > Firefox can't establish a connection to the server at oeh25281:65001.
> >
> >     The site could be temporarily unavailable or too busy. Try again in
> a few moments.
> >     If you are unable to load any pages, check your computer's network
> connection.
> >     If your computer or network is protected by a firewall or proxy,
> make sure that Firefox is permitted to access the Web.
> >
> >
> > Firefox message when browsing to an existing server
> > that does not send on port 65001
> > ====================================================
> >
> > Unable to connect
> >
> > Firefox can't establish a connection to the server at lidcoap30:65001.
> >
> >     The site could be temporarily unavailable or too busy. Try again in
> a few moments.
> >     If you are unable to load any pages, check your computer's network
> connection.
> >     If your computer or network is protected by a firewall or proxy,
> make sure that Firefox is permitted to access the Web.
> >
> >
> > Message returned when requesting same webpage (which does not exist)
> > on that other server at port 80
> > ====================================================================
> >
> > Not Found
> >
> > The requested URL /AirQualityFramework was not found on this server.
> > Apache/2.2.26 (Win64) vFabric/5.3.3 vFabricLicense/5.3.3 mod_ssl/2.2.26
> OpenSSL/1.0.1h-fips DAV/2 mod_bmx/0.9.4 Server at lidcoap30 Port 80
> >
> >
> > Facts:
> > ======
> > I am using J64-805 under windows.
> >
> > My PC running J and JHS is OEH25281.
> >
> > A server I set up running APACHE (and other software and
> > ideally JHS when I get this webpage going) is LIDCOAP30.
> >
> > I operate internally on a LAN.  The computers on the LAN (including the
> > server LIDCOAP30) are not accessiable from the internet.
> >
> > The browser can get through to computer server LIDCOAP30 running APACHE
> > (which I set up as part of a larger install). I cannot recall setting
> > any router functions etc for that server.
> >
> > When requesting LIDCOAP30:65001 I get exactly the same answer as
> OEH25281:65001.
> >
> > When browsing to a non existant host name XXXX the browser tries all
> other
> > combinations ending up telling me that www.XXXX.com  does not exist.
> >
> >
> > Conclusion:
> > ===========
> >
> > Browser can *see* the computers but any message sent to port 65001 does
> > not get answered.
> >
> > The user name and password functionality appears not to make any
> difference.
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: General [mailto:[email protected]] On Behalf
> Of Eric Iverson
> > Sent: Tuesday, 1 November 2016 11:36 AM
> > To: General forum <[email protected]>
> > Subject: Re: [Jgeneral] JHS
> >
> > JUM is not relevant to how one connects to a normal server so is not of
> > interest to Ian.
> >
> > On Mon, Oct 31, 2016 at 11:05 AM, Björn Helgason <[email protected]>
> wrote:
> >
> > > Is JUM a good place to learn from about this?
> > >
> > > On 31 Oct 2016 14:01, "Eric Iverson" <[email protected]> wrote:
> > >
> > > > Ian,
> > > >
> > > > Further to the answer provided by Brian.
> > > >
> > > > Read the config section in the JHS jhelp page. More recent versions
> of
> > > JHS
> > > > have slightly changed the recommended way to configure JHS.
> > > >
> > > > Study the default config settings by looking at configdefault_jhs_
> in a
> > > JHS
> > > > session.
> > > >
> > > > A sketch of the steps you need (depending on specifics of your
> install):
> > > >
> > <snip>
> > > >
> > > >
> > > > On Mon, Oct 31, 2016 at 6:41 AM, Brian Schott <
> [email protected]>
> > > > wrote:
> > > >
> > > > > Look for this code in
> > <snip>
> > ------------------------------------------------------------
> ------------------------------------------------------------
> ----------------------------------------------
> > This email is intended for the addressee(s) named and may contain
> confidential and/or privileged information.
> > If you are not the intended recipient, please notify the sender and then
> delete it immediately.
> > Any views expressed in this email are those of the individual sender
> except where the sender expressly and with authority states them to be the
> views of the NSW Office of Environment and Heritage.
> >
> > PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to