Ian,

The initial jconsole jhs welcome screen has extra lines of the form:

Access from another machine:
   http://SERVER_IP_ADDRESS:65001/jijx

If BIND is any. Otherwise those lines are absent.


On Tue, Nov 1, 2016 at 1:17 PM, Eric Iverson <[email protected]>
wrote:

> Ian,
>
> Follow up on previous message.
>
> If you the lan url (192.168.0.???:65001) works on the same machine, but
> fails when you try from another machine, the problem is in firewalls.
>
> The server needs to allow 65001 inbound. And the client needs to allow
> 65001 outbound.
>
> A quick and dirty check is to turn off the server (windows?) firewall and
> see if you can then access from another machine.
>
> If that doesn't help then the problem is probably on the client outbound
> firewall rules. Make sure the the client has port 65001 enable for outgoing.
>
> What are the machines you are working with? Both windows?
>
> The windows firewall rules seem (to me) to be particularly complicated. If
> you add a new rule that allows 65001 inbound you have to make sure that
> some other rule isn't still blocking it. For example, from some of your
> earlier experiments window might have automatecally added a rule that
> blocked inbound connections to the program jconsole.exe and you need to
> delete those rules.
>
>
>
>
>
> On Tue, Nov 1, 2016 at 9:46 AM, Eric Iverson <[email protected]>
> wrote:
>
>> You need to have your app loaded before a browser can connect to it. The
>> locale of the app is where the browser request is handled.
>>
>> ***
>> The following are steps that just worked for me. Please try them in order
>> to isolate the problem.
>>
>> 1. make sure you have a jhs config with BIND=: 'any'
>>
>> 2. start jconsole
>> ...>   load'~addons/ide/jhs/demo/jdemo1.ijs NB. load app
>> ...>   load'~addons/ide/jhs/config/jhsany.cfg NB. start server
>>
>> 3. on the same machine browse to url:  192.168.0.18:65001/jdemo1
>> (the above ip address is your lan ip address as reported by ipconfig)
>>
>> 4. if you see the jdemo1 page, then this is progess
>>
>> 5. try the same url on another machine on the lan
>>
>>
>> On Tue, Nov 1, 2016 at 9:12 AM, Eric Iverson <[email protected]>
>> wrote:
>>
>>> Quick response:
>>>
>>> As Joe points out, the netstat report shows JHS binding to localhost,
>>> not any. So, at least in this case you are not running JHS with BIND=:'any'
>>>
>>> Check your config to be sure it says 'any' and be sure that is the
>>> config you are running and then verify that netstat shows 0.0.0.0 for JHS
>>> rather than the localhost ip.
>>>
>>> ***
>>> At this stage the only config thing you need to change is BIND. No need
>>> to make changes to LHOK, USER, or PASS. You may want to play with those
>>> eventually, but only after you have the basics working.
>>>
>>> On Tue, Nov 1, 2016 at 8:02 AM, Joe Bogner <[email protected]> wrote:
>>>
>>>> The netstat output is helpful.  I can see from it that it's not a
>>>> firewall
>>>> issue (that may show up later). The first issue is that it's binding to
>>>> 127.0.0.1 (localhost) and not an external interface.
>>>>
>>>> With a stock J installation, I see the same (as expected)
>>>>
>>>> C:\Users\Joe Bogner>netstat -a -n | grep 65001
>>>>   TCP    127.0.0.1:65001        0.0.0.0:0              LISTENING
>>>>
>>>>
>>>> Please note, the following has changed between j805 and previous
>>>> versions.
>>>> If you're used to just clicking jhs.bat or invoking from the command
>>>> line,
>>>> then you'll need to make some changes.
>>>>
>>>>
>>>> First, you'll want to modify jhs.cfg
>>>>
>>>> Here's my file
>>>>
>>>> NB. start JHS - run jconsole and load this (or other cfg) script
>>>> NB. create other cfg - copy this file, rename, and edit
>>>> NB. see configdefault_jhs_ for config options
>>>>
>>>> config_jhs_=: 3 : 0
>>>> NB. add/edit config options here
>>>>
>>>> PORT=: 65001 NB. serve port 65001
>>>> BIND=: 'any'     NB. <---------------- THIS IS THE ONLY LINE I ADDED
>>>> NB. do not edit after here
>>>> )
>>>> load'~addons/ide/jhs/core.ijs'
>>>> init_jhs_''
>>>>
>>>>
>>>> Second, you'll want to either invoke the shortcut method to create a
>>>> shortcut on your desktop, or just launch from the command line.
>>>>
>>>> C:\Users\Joe Bogner\Downloads\j805_win64\bin>jconsole
>>>> ~addons/ide/jhs/config/jhs.cfg
>>>>
>>>> J HTTP Server - init OK
>>>>
>>>> Requires HTML 5 browser with javascript.
>>>> ..
>>>> <snip>
>>>>
>>>> Now you'll probably get a Windows firewall prompt (say yes) and then
>>>> you'll
>>>> see this in netstat
>>>>
>>>> C:\Users\Joe Bogner>netstat -a -n | grep 65001
>>>>   TCP    0.0.0.0:65001          0.0.0.0:0              LISTENING
>>>>
>>>>
>>>> This shows it's bound to an external network interface
>>>>
>>>> *REMEMBER* you'll want to set up the username/password authentication or
>>>> have a firewall rule to only run on your private network
>>>>
>>>>
>>>> To create the shortcut, run this from within jhs
>>>>
>>>>    require 'ide/jhs/shortcut'
>>>>    shortcut''
>>>>
>>>>
>>>> You'll then have a blue jhs icon on your desktop that launches with the
>>>> jhs.cfg
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Engine: j805/j64/windows
>>>>
>>>> Beta-12: commercial/2016-09-30T15:50:47
>>>>
>>>> Library: 8.05.05
>>>>
>>>> Qt IDE: 1.5.2/5.6.1
>>>>
>>>> Platform: Win 64
>>>>
>>>> Installer: J805 install
>>>>
>>>> InstallPath: c:/users/joe bogner/downloads/j805_win64
>>>>
>>>> Contact: www.jsoftware.com
>>>>
>>>>
>>>> On Tue, Nov 1, 2016 at 1:57 AM, Ian Shannon <
>>>> [email protected]> wrote:
>>>>
>>>> > More info
>>>> >
>>>> > When I set the JHS application running on the **server** and doing
>>>> >    netstat -a -n
>>>> >
>>>> > I get a very long listing.  I have kept lines before and after
>>>> > with ports  80, 8092  and  65001.
>>>> >
>>>> > 80  ===>  active apache server
>>>> > 8092  ===>  Dyalog APL application written many years ago
>>>> > 65001 ===>  JHS application.
>>>> >
>>>> > Both Apache and the Dyalog APL application respond correctly for
>>>> browsing
>>>> > to
>>>> >
>>>> > localhost:port
>>>> > 127.0.0.1:port
>>>> > LIDCOAP30:port          host name of server
>>>> > 121.243.11.138:port   host IP4 address of server
>>>> >
>>>> > ----
>>>> >
>>>> > Whereas the setup for the apache server may have done special
>>>> > configuration that I didn't see, when I set up the dialog APL
>>>> > application is was just a matter of copying the encapsulated
>>>> > workspace and executable file with a few extra DLLs and data
>>>> > files to the server.  On start the DYALOG APL application just
>>>> > runs!
>>>> >
>>>> > (Though I now prefer J to Dyalog APL for a well-defined language)
>>>> >
>>>> >
>>>> > Output of netstat -a -n
>>>> > =======================
>>>> >
>>>> > Active Connections
>>>> >
>>>> >   Proto  Local Address          Foreign Address        State
>>>> >   TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
>>>> >   TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
>>>> > <snip>
>>>> >   TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING
>>>> >   TCP    0.0.0.0:8092           0.0.0.0:0              LISTENING
>>>> >   TCP    0.0.0.0:8561           0.0.0.0:0              LISTENING
>>>> > <snip>
>>>> >   TCP    0.0.0.0:61616          0.0.0.0:0              LISTENING
>>>> >   TCP    0.0.0.0:65015          0.0.0.0:0              LISTENING
>>>> >   TCP    0.0.0.0:65021          0.0.0.0:0              LISTENING
>>>> > <snip>
>>>> >   TCP    0.0.0.0:65168          0.0.0.0:0              LISTENING
>>>> >   TCP    127.0.0.1:80           127.0.0.1:58517        TIME_WAIT
>>>> >   TCP    127.0.0.1:80           127.0.0.1:58518        TIME_WAIT
>>>> >   TCP    127.0.0.1:80           127.0.0.1:58520        TIME_WAIT
>>>> >   TCP    127.0.0.1:80           127.0.0.1:58521        TIME_WAIT
>>>> >   TCP    127.0.0.1:80           127.0.0.1:58522        TIME_WAIT
>>>> >   TCP    127.0.0.1:80           127.0.0.1:58523        TIME_WAIT
>>>> >   TCP    127.0.0.1:31000        127.0.0.1:32001        ESTABLISHED
>>>> > <snip>
>>>> >   TCP    127.0.0.1:61103        0.0.0.0:0              LISTENING
>>>> >   TCP    127.0.0.1:65001        0.0.0.0:0              LISTENING
>>>> >   TCP    127.0.0.1:65001        127.0.0.1:58527        TIME_WAIT
>>>> >   TCP    127.0.0.1:65001        127.0.0.1:58564        TIME_WAIT
>>>> >   TCP    127.0.0.1:65001        127.0.0.1:58565        TIME_WAIT
>>>> >   TCP    127.0.0.1:65001        127.0.0.1:58568        TIME_WAIT
>>>> >   TCP    127.0.0.1:65001        127.0.0.1:58569        FIN_WAIT_2
>>>> >   TCP    127.0.0.1:65001        127.0.0.1:58571        TIME_WAIT
>>>> >   TCP    127.0.0.1:65001        127.0.0.1:58572        FIN_WAIT_2
>>>> >   TCP    141.243.11.138:80      141.243.11.138:58566   ESTABLISHED
>>>> >   TCP    141.243.11.138:80      141.243.11.138:58567   TIME_WAIT
>>>> >   TCP    141.243.11.138:139     0.0.0.0:0              LISTENING
>>>> > <snip>
>>>> >   TCP    141.243.11.138:7443    141.243.11.138:58557   ESTABLISHED
>>>> >   TCP    141.243.11.138:8561    141.243.11.138:49229   ESTABLISHED
>>>> > <snip>
>>>> >   TCP    141.243.11.138:64623   141.243.11.10:59333    ESTABLISHED
>>>> >   TCP    [::]:80                [::]:0                 LISTENING
>>>> >   TCP    [::]:135               [::]:0                 LISTENING
>>>> > <snip>
>>>> >   TCP    [::]:7443              [::]:0                 LISTENING
>>>> >   TCP    [::]:8080              [::]:0                 LISTENING
>>>> >   TCP    [::]:8561              [::]:0                 LISTENING
>>>> > <snip>
>>>> >   TCP    [::]:61616             [::]:0                 LISTENING
>>>> >   TCP    [::]:65015             [::]:0                 LISTENING
>>>> >
>>>> > ===========
>>>> >
>>>> > Although port 80 (apache) occurs for IP4 address of
>>>> > 0.0.0.0
>>>> > 127.0.0.1
>>>> > 121.143.11.138
>>>> >
>>>> > The Dyalog APL application only has port 8092 for IP4 address of
>>>> > 0.0.0.0
>>>> >
>>>> > I am at a loss to make head or tail of what is going on!
>>>> >
>>>> >
>>>> > 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
>>>> >
>>>> >
>>>> > -----Original Message-----
>>>> > From: General [mailto:[email protected]] On
>>>> Behalf Of
>>>> > Ian Shannon
>>>> > Sent: Tuesday, 1 November 2016 1:39 PM
>>>> > To: [email protected]
>>>> > Subject: [Jgeneral] JHS start for *any* client
>>>> >
>>>> > Hi there,
>>>> >
>>>> > Thanks for the interest in helping.
>>>> >
>>>> > <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/forum
>>>> s.htm
>>>> >
>>>> ----------------------------------------------------------------------
>>>> 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