Topic: simple echoserver / echoclient example not in localhost

Hi all,

I'm compiling with

./configure --enable-dtls --enable-ipv6 --enable-debug=yes

I'm able do do echoclient / echoserver test running on same machine, localhost.

I have also changed line 156 from wolfssl/test.h
static const char* const yasslIP   = "127.0.0.1"; // changed to my ipv6 addr

ping and ping6 works fine.

But I'm not able to run successfully echoserver / client on different machines. (even if I try with ipv4)

Please, give me direction on how could I get this done.

let me know if you want to see the terminal output.

btw: I'm using Linux Ubuntu 12.10

Thanks in advance,
Edgard

Share

Re: simple echoserver / echoclient example not in localhost

Hi Edgard,

It's often easier to test with the example client (./examples/client/client) and server (./examples/server/server), as they offer several command line options for setting host, port, etc.  You can run either with the "-h" option to see a list of commands available to the user.

When running the example server, you'll need to add -b (bind to any interface on server unless localhost only is desired).

Are you connecting to the other machine through a router?  If so, does your router have IPv6 support?  Usually you'll see some kind of setting in your router configuration to enable IPv6 if so.  If not, this could be the cause of not being able to connect across different computers. 

You should still be able to connect over IPv4 though, so there must be something else off as well.  Have you double checked your IP addresses for both machines?  When running using IPv4, are both copies of wolfSSL embedded SSL compiled WITHOUT the "--enable-ipv6" flag?

Thanks,
Chris

Re: simple echoserver / echoclient example not in localhost

Chrisc,

Thanks for your reply. Now I did

./configure  --enable-dtls  --enable-debug=yes

./server -b -u

./client -u -h 10.81.1.196

It just worked as expected.

So, it looks like the problem is with --enable-ipv6

btw: My route supports ipv6 it works fine with ip6 when tested with netcat

# server side
./netcat -6 -u -l -p 11111

#client side
./netcat -6 -u cafe::4 11111


So my new question is, how to make it wolfSSL work with ip6 ?

Thanks in advance,
Edgard

Share

Re: simple echoserver / echoclient example not in localhost

Edgard,

We recently made a change to the way our examples work.  Before if IPv6 examples/tests were turned on, localhost only was used.  Now link-local (with scope ids) and IPv6 hosts can be used as well.  Can you try our updated code from GitHub (https://github.com/wolfssl/wolfssl)?  We'll have a new stable release out today (wolfSSL 2.6.0) as well if you would like to wait for that.

Thanks,
Chris

Re: simple echoserver / echoclient example not in localhost

Great !!!

Chris,

Thanks very much,

I'll wait the stable version then.

Best Regards,
Edgard

Share

Re: simple echoserver / echoclient example not in localhost

Edgard,

wolfSSL 2.6.0 is now available for download:

http://yassl.com/yaSSL/download/downloadForm.php

- Chris