Topic: [SOLVED] wolfSSL error: tcp connect failed

Hey guys!
I've installed successfully(all self test passed) wolfSSL 3.14 on my machines.
One is running on Kali linux, second is Raspberry PI with Raspbian.

Now I'm trying to connect client and server from the examples but getting error which says.

"wolfSSL error: tcp connect failed"

Everything is fine when server and client are running on the same machine. They are connecting through the localhost(127.0.0.1)

but when I'm trying to get client:

root@kali:~/Desktop/wolfssl-3.14.0# ./examples/client/client -h 192.168.1.2 -d
wolfSSL error: tcp connect failed

server is ovc:

pi@raspberrypi:~/Desktop/wolfssl-3.14.0 $ ./examples/server/server

Both machines are connected directly and communicating
Kali - 192.168.1.1 255.255.255.0
Raspb - 192.168.1.2 255.255.255.0

Testing connection to wolfSSL site from the client is working correctly:

root@kali:~/Pulpit/wolfssl-3.14.0# ./examples/client/client -h www.wolfssl.com -p 443 -g -d
SSL version is TLSv1.2
SSL cipher suite is TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
SSL curve name is SECP256R1
SSL connect ok, sending GET...
HTTP/1.1 404 Not Found
Date: Fri, 04 May 2018 08:57:00 GMT
Server: Apache/2.2
.34 (Unix) mod_ssl/2.2.34 OpenSSL/1.0.1e-fips mod_bwlimited/1.4
X-Powered-By: 

I'm tryin to do this because I need to do some test  for my bachelor.
Thanks

Share

Re: [SOLVED] wolfSSL error: tcp connect failed

Ok I've answered myself

Server was listening only on loopback interface. Correct option should be:

./examples/server/server -b

Now everything is fine.
I'm noob in that stuff smile

Share