Network is unreachable

Hello, I am using quectel EC21 i run example_tcp.c it works fine with local host but if i access remote server by changing its port error(Network is unreachable)appear on screen kindly correct me

You need to set the address and port number of the remote server correctly.