Unable to connect esphome node with MQTT

i am trying to connect one esphome node in esp32 from outside my home hassio through the net using MQTT but unable to connect it with my HA ,

mosquito mqtt addon log giving this error

1560095232: New connection from xxxxxxxx92.19 on port 1883.
[INFO] found luni on local database
1560095233: New client connected from xxxxxxxx2.19 as 0144166a-22b4-47cc-8ce9-1d7c6f898bca (c1, k60, u'luni').
1560095237: Socket error on client 0144166a-22b4-47cc-8ce9-1d7c6f898bca, disconnecting.

nginx addon log giving this error

2019/06/09 21:55:31 [error] 16#16: *24613 upstream prematurely closed connection while sending to client, client: ::ffff:xxxxxxx3.154, server: xxxxxxx.duckdns.org, request: "GET /api/hassio_ingress/--heCEH_2LWiDxWT92A9cNQRWF1IvcucHuMhPJ4QXzU/ping HTTP/1.1", upstream: "http://xxxxxxxx1:8123/api/hassio_ingress/--heCEH_2LWiDxWT92A9cNQRWF1IvcucHuMhPJ4QXzU/ping", host: "xxxxxxx.duckdns.org", referrer: "https://xxxxxxx.duckdns.org/api/hassio_ingress/--heCEH_2LWiDxWT92A9cNQRWF1IvcucHuMhPJ4QXzU/"