Could not connect to the server - MacOS Client

Good afternoon,

I am new to Tryton.
My purpose is to test the HIS provided with GNU Health

I currently have an issue. I cannot connect my Mac OS Tryton client to the tryton server that i set up.

Here is my set up :

Tryton client: 4.2.22

python env:

Genshi==0.7.3
lxml==4.3.4
passlib==1.7.1
polib==1.1.0
psycopg2-binary==2.8.2
python-dateutil==2.8.0
python-magic==0.4.15
python-sql==1.0.0
python-stdnum==1.11
pytz==2019.1
relatorio==0.8.1
six==1.12.0
trytond==4.2.22
trytond-company==4.2.2
trytond-country==4.2.0
trytond-currency==4.2.2
trytond-health==3.2.10
trytond-health-genetics==3.2.10
trytond-health-gyneco==3.2.10
trytond-health-icd10==3.2.10
trytond-health-inpatient==3.2.10
trytond-health-lab==3.2.10
trytond-health-lifestyle==3.2.10
trytond-health-pediatrics==3.2.10
trytond-health-profile==3.2.10
trytond-health-socioeconomics==3.2.10
trytond-health-surgery==3.2.10
trytond-party==4.2.5
trytond-product==4.2.2
Werkzeug==0.15.4
wrapt==1.11.1

trytond.conf

[web]
listen = *:8050
root = /home/me/gnuhealth/www/

[database]
uri = postgresql://gnuhealth:gnuhealth@localhost:5433/
path = /home/me/gnuhealth/bin/
language = fr

pm2 conf

{
  "apps": [
    {
      "name": "gnuhealth",
      "cwd": "/home/adminymed/gnuhealth",
      "args": "-c ./conf/trytond.conf",
      "script": "/home/me/env/gnuhealth/bin/trytond",
      "exec_mode": "fork",
      "exec_interpreter": "/home/me/env/gnuhealth/bin/python3",
      "error_file": "/home/me/gnuhealth/gnuhealth-error.log",
      "out_file": "/home/me/gnuhealth/gnuhealth.log"
    }
  ]
}

The log is clear :

938 140693470889792 [2019-06-11 15:59:15,358] INFO werkzeug  * Running on http://localhost:8050/ 
(Press CTRL+C to quit)

Netstat looks good :

tcp        0      0 0.0.0.0:8050            0.0.0.0:*               LISTEN      938/python3  
server {
        listen 443 ssl http2;
        # listen [::]:443 ssl http2;
        listen [::]:443 ssl http2 ipv6only=on;
}

Thus when i type the following in the client:
myserver.gnuhealth.tryton:8050
gnuhealth
admin

I have an error : “could not connect to the server”.

Do you have a tip or an idea about it ?

Thanks a lot,
E.

Maybe the hostname resolve for IPv6 and the server is only listening on IPv4.

Thanks a lot Cedric !

Actually your insight put me on the track.

I use nginx and ssl (port 443).

Therefore i had to set the ssl port on the host address.