# Could not connect to the server - MacOS Client

**URL:** https://discuss.tryton.org/t/could-not-connect-to-the-server-macos-client/1469
**Category:** User
**Created:** [June 11, 2019, 4:29pm UTC](https://discuss.tryton.org/t/could-not-connect-to-the-server-macos-client/1469 "2019-06-11T16:29:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![em1le](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/7feea3/32.png) [@em1le](https://discuss.tryton.org/u/em1le)
#### Post date: [June 11, 2019, 4:29pm UTC](https://discuss.tryton.org/t/could-not-connect-to-the-server-macos-client/1469/1 "2019-06-11T16:29:13Z")

</div>

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** _:

```python
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** _

```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** _

```json
{
  "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 :

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

```

_ **Netstat** _ looks good :

```shell
tcp 0 0 0.0.0.0:8050 0.0.0.0:* LISTEN 938/python3  

```

```yml
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.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [June 12, 2019, 8:07am UTC](https://discuss.tryton.org/t/could-not-connect-to-the-server-macos-client/1469/2 "2019-06-12T08:07:59Z")

</div>

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

---

<div class="post-metadata">

### Author: ![em1le](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/7feea3/32.png) [@em1le](https://discuss.tryton.org/u/em1le)
#### Post date: [June 12, 2019, 9:32am UTC](https://discuss.tryton.org/t/could-not-connect-to-the-server-macos-client/1469/3 "2019-06-12T09:32:04Z")

</div>

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.
