Sql Server Port

Hello all:

I am testing a database connection and have created a self hosted database and working with the login script for SQL server. I am having trouble connecting. The error message come back as:

Failed to connect to ec2-xx.xx.xx.xx.xx.amazonaws.com:1433 in 15000ms

The port that SQL is listening to is a different one. Is there a way to tell the script to look at a specific port instead of 1433?

Thanks.

I have set one of the options to port: xxxx. Now the script is looking for the correct port.