# Cant Connect to TTN application on Production Server but can on development server

**URL:** <https://www.thethingsnetwork.org/forum/t/cant-connect-to-ttn-application-on-production-server-but-can-on-development-server/49096>\
**Category:** AWS\
**Created:** [June 25, 2021, 5:41am UTC](https://www.thethingsnetwork.org/forum/t/cant-connect-to-ttn-application-on-production-server-but-can-on-development-server/49096 "2021-06-25T05:41:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LachlanNewman](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/lachlannewman/32/35697_2.png) [@LachlanNewman](https://www.thethingsnetwork.org/forum/u/LachlanNewman)\
**Post date:** [June 25, 2021, 5:41am UTC](https://www.thethingsnetwork.org/forum/t/cant-connect-to-ttn-application-on-production-server-but-can-on-development-server/49096/1 "2021-06-25T05:41:05Z")

</div>

I am trying to connect to TTN v2 applications throught the router asia-se.thethings.network:1883.  
connections work from my development server but not from my production server.

The production server returns the error

Error: 14 UNAVAILABLE: failed to connect to all addresses  
at Object.exports.createStatusError (/usr/src/app/node\_modules/grpc/src/common.js:91:15)  
at Object.onReceiveStatus (/usr/src/app/node\_modules/grpc/src/client\_interceptors.js:1209:28)  
at InterceptingListener.\_callNext (/usr/src/app/node\_modules/grpc/src/client\_interceptors.js:568:42)  
at InterceptingListener.onReceiveStatus (/usr/src/app/node\_modules/grpc/src/client\_interceptors.js:618:8)  
at callback (/usr/src/app/node\_modules/grpc/src/client\_interceptors.js:847:24)  
code: 14,  
metadata: Metadata { \_internal\_repr: {}, flags: 0 },

Both servers are containers inside seperate EC2 instances on AWS.

I cant understand one server will connect but another instance. Does ttn have any firewalls or anything in place ?
