9 years, 2 months ago.

Mbed to Mbed TCP Connection Won't Connect

I have two mbeds wird together with a crossover cable. I managed to get them to connect with UDP and static IP's, but now I'm trying TCP, and it won't connect!

Here's what my code looks like:

Server Side:

[Not found]

Client Side:

[Not found]

These programs are identical to the TCP Socket example code on the mbed site. The only thing I changed was the call to eth.init(). Rather than using DHCP, I used static IP's. This isn't the issue - it worked in the UDP version of my code, and based on the output of this program, it isn't this change that's causing the problem.

Here is the output from the server:

Server IP Address is 192.168.2.1

Wait for new connection...

Here is the output from the client:

Client IP Address is 192.168.2.2 Unable to connect to (192.168.2.1) on port (7) Unable to connect to (192.168.2.1) on port (7) Unable to connect to (192.168.2.1) on port (7) Unable to connect to (192.168.2.1) on port (7) ...

What's the deal? Thanks in advance!

Be the first to answer this question.