# Can't register the client

**URL:** <https://forums.percona.com/t/cant-register-the-client/7824>\
**Category:** PMM 2.x\
**Created:** [July 24, 2020, 3:39am UTC](https://forums.percona.com/t/cant-register-the-client/7824 "2020-07-24T03:39:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalhoang](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kalhoang/32/1368_2.png) [@kalhoang](https://forums.percona.com/u/kalhoang)\
**Post date:** [July 24, 2020, 3:39am UTC](https://forums.percona.com/t/cant-register-the-client/7824/1 "2020-07-24T03:39:32Z")

</div>

Hey guys,  
  
I tried to install PMM2 with these configs:  
- PMM server: On my MacOS (w/ Docker)  
- PMM Client: My MySQL server (CentOS)  
- Using DDNS (No-IP) to connect between client and server&nbsp;  
  
Here some commands I used to register and errors:  
  
Via HTTPS

```auto
pmm-admin config --server-insecure-tls --server-url=https://admin:Pa$$word@abc.ddns.net:8443 

Checking local pmm-agent status...
pmm-agent is running.
Registering pmm-agent on PMM Server...
Failed to register pmm-agent on PMM Server: Post "https://kalh.ddns.net:8443/v1/management/Node/Register": dial tcp 116.109.37.80:8443: connect: connection refused.

```

Via HTTP:

```auto
pmm-admin config --server-insecure-tls --server-url=http://admin:Pa$$word@abc.ddns.net:8080
Warning: PMM Server requires TLS communications with client.
Checking local pmm-agent status...
pmm-agent is running.
Registering pmm-agent on PMM Server...
Failed to register pmm-agent on PMM Server: response from nginx: &lt;HEAD&gt;&lt;TITLE&gt;501 Not Implemented&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;&lt;H1&gt;501 Not Implemented&lt;/H1&gt;
We are sorry to be unable to perform the method POST to non-script at this time.&lt;P&gt;
If you would like to see this capability in future
releases, send the method which failed, why you
would like to have it, and the server version DrayWeb/0.0.2
to &lt;ADDRESS&gt;http://www.draytek.com/&lt;/ADDRESS&gt;&lt;P&gt;
&lt;/body&gt;
&lt;/html&gt;
HTTP/1.0 302 Found
Pragma: no-cache
Location: /v2000/v1/management/Node/Register
Content-type: text/html

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;302 Document moved&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

This document has moved &lt;A HREF="/v2000/v1/management/Node/Register"&gt;here&lt;/A&gt;.&lt;P&gt;
&lt;/body&gt;
&lt;/html&gt;
HTTP/1.0 404 Not Found !!!
Pragma: no-cache
Content-type: text/html
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;404 Not Found !!!&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div align="center"&gt;&lt;center&gt;
&lt;table border="1" cellspacing="0" width="100%"&gt;
&lt;tr&gt;
&lt;td width="100%" bgcolor="#0000A0"&gt;
&lt;p align="center"&gt;&lt;font color="#FFFFFF" face="Arial"&gt;
&lt;strong&gt;404 Not Found !!!&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="100%" bgcolor="#F3F3F3" bordercolor="#000080" bordercolordark="#000080"&gt;
&lt;p align="center"&gt;&lt;font face="Times New Romain" color="#000000"&gt;
&lt;strong&gt;The requested URL was not found on this server.&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
.
Please check pmm-managed logs.

```

Please tell me what should I do?  
Thanks and best regards

---

<div class="post-metadata">

**Author:** ![kalhoang](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kalhoang/32/1368_2.png) [@kalhoang](https://forums.percona.com/u/kalhoang)\
**Post date:** [July 24, 2020, 3:48am UTC](https://forums.percona.com/t/cant-register-the-client/7824/2 "2020-07-24T03:48:08Z")

</div>

Never mind!  
  
I didn’t open an outgoing port on the MySQL server. How stupid I am
