Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

I am share some asterisk problem. When I am login from web gui but show error can’t connect to asterisk. So I want to show how to solve Unable to connect to remote asterisk....