This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3200-LAUNCHXL: TCP_socket example connect failed for digitalocean remote server

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3100, CC3200

Hi,

  I am using CC3200 launch pad to send data from the cc3200 board to my digital ocean web server. I am using CC3100_CC3200_ServicePack_1.0.1.15-2.15.0.1 and SDK 1.5.0.

I am trying with tcp_socket example in the sdk 1.5.0. I changed the IP address in the tcp_socket program to my server ip. I ran a server program on the digital ocean  server first to listen at port 5001.

Then I ran the tcp_socket example on my pc using ccs and observing output in teraterm console. I don't see any message on the server. I get following error -2004 on the teraterm console. 

What can be the problem? Do you have a sample server program that you can provide me which I will run and check if it is working? 

Note: The same tcp_socket program when i run in my pc as server using iperf it works correctly.

Choose Options:
1. Send TCP packets.
2. Receive TCP packets.
3. Settings.
4. Exit
Enter the option to use: 1
Run iperf command "iperf.exe -s -i 1 -t 100" and press Enter
Sending TCP packets...
Error [-2004] at line [889] in function [BsdTcpClient]


Choose Options:
1. Send TCP packets.
2. Receive TCP packets.
3. Settings.
4. Exit
Enter the option to use: