Hi,
The state refers to like:
"Error Number: 18456"
"Severity: 14"
"State: 1"
If you can see this information, or you can see this article, make sure the SQL Browser services are started, and open port 1433(you write 1434, if written wrong), you can test if can connect the public IP by SQLCMD, like sqlcmd -S public IP, 1433 -U sa
You can refer to this article to get some configuration tips:
https://www.experts-exchange.com/articles/5229/How-to-allow-ODBC-to-connect-to-SQL-via-and-external-IP.html
-------------
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.