CC3000 EchoServer/ChatServer - Client can not connect.

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
edwarde
 
Posts: 11
Joined: Sun May 12, 2013 10:56 am

CC3000 EchoServer/ChatServer - Client can not connect.

Post by edwarde »

Trying to get the EchoServer and ChatServer examples to work (I can get all the other examples to work fine), last Serial.println I see is "Listening for connections...".

I have tried a few clients: from my Windows XP(192.168.1.105), Dos Prompt (telnet 192.168.0.102 7), PuTTY (192.168.0.102 7 Telnet) and from my iPad(192.168.0.103), Telnet Lite (192.168.0.102 7 ), all fail to connect.

I have two (2) WiFi Routers, my CC3000 could NOT connect to my Cisco M20 (192.168.1.1) using WLAN_SEC_WEP, but CAN connect to TP-LINK TL-WRT720N (192.168.0.1) using WLAN_SEC_WPA2.

I used Net Master HD on my iPad, I can see the CC3000 (192.168.0.102) and port 7 available, but I can not connect.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CC3000 EchoServer/ChatServer - Client can not connect.

Post by adafruit_support_rick »

I have just been running the ChatServer and EchoServer. I have two telnet sessions running on my MacBookPro. The chat functionality is working between the telnet sessions. EchoServer echoes whatever I type. Nothing additional is printed in Serial Monitor after "Listening for connections…", so that is normal behavior.

What makes you think you cannot connect? What output are you seeing from your telnet clients?

edwarde
 
Posts: 11
Joined: Sun May 12, 2013 10:56 am

Re: CC3000 EchoServer/ChatServer - Client can not connect.

Post by edwarde »

Rick,

Thanks for the reply, kind of curious why the DNSserv is 192.168.1.1 when my Gateway is 192.168.0.1 (see below).

Code: Select all

Hello, CC3000!

Free RAM: 1055

Initializing...
Started AP/SSID scan

Connecting to TP-LINK_831E50...Waiting to connect...Connected!
Request DHCP

IP Addr: 192.168.0.102
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DHCPsrv: 192.168.0.1
DNSserv: 192.168.1.1

NOTE: This sketch may cause problems with other sketches
since the .disconnect() function is never called, so the
AP may refuse connection requests from the CC3000 until a
timeout period passes.  This is normal behaviour since
there isn't an obvious moment to disconnect with a server.

Listening for connections...
The following is the Dos Prompt telnet client (similar results from the other aforementioned telnet clients):

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\EdwardE>telnet 192.168.0.102 7
Connecting To 192.168.0.102...Could not open connection to the host, on port 7:
Connect failed

C:\Documents and Settings\EdwardE>
Thanks...
Ed

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CC3000 EchoServer/ChatServer - Client can not connect.

Post by adafruit_support_rick »

I think you need to get to the bottom of the dns/gateway issue. You seem to have some configuration problems with your network.

edwarde
 
Posts: 11
Joined: Sun May 12, 2013 10:56 am

Re: CC3000 EchoServer/ChatServer - Client can not connect.

Post by edwarde »

Nothing wrong with my network, issue is, the Serial Monitor and the CC3000 MUST be on the same network. Plugged my PC into the 192.168.0.x network, and all sketches ran as expected (ChatServer, EchoServer and MDNS_Echo_Server).

User avatar
carlhung
 
Posts: 1
Joined: Sun Feb 01, 2015 7:57 am

Re: CC3000 EchoServer/ChatServer - Client can not connect.

Post by carlhung »

I have got the same problem.
Webserver works fine.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CC3000 EchoServer/ChatServer - Client can not connect.

Post by adafruit_support_rick »

What exactly is the problem? Are you running one of the Adafruit example sketches?
Please post the output from Serial Monitor

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”