Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Help for IPV6 connection

Hi Simon,

Thanks, the environment variables work for IPV4 addresses but you will get an error if you try to use IPV6 because I noticed in the code you split the string at the : char to get the port and this causes some problems when using IPV6. I managed to get it working by hardcoding the address directly into the code like : "new InetSocketAddress("2001:db8::1",4242)".
Everything works fine now.

Thank you,
Alex


2015-08-20 9:43 GMT+01:00 Simon Bernard <contact@xxxxxxxxxxxxxxx>:
If you just want to configure Leshan Standalone, you can use environment variable :
COAPIPFACE for Coap interface  (format "hostname:port", see https://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#getByName%28java.lang.String%29 for the hostname format)
COAPSIPFACE for Coap on DTLS interface (same as COAPIPFACE)
PORT for http port of standalone web server (format "port")

E.g. :  export COAPIFACE=*:5500 && export PORT=8081 && java -jar target/leshan-standalone-*-SNAPSHOT-jar-with-dependencies.jar

If you wan to use the API and code you own server, use LeshanServerBuilder and take a look at the LeshanStandalone as example.


Le 19/08/2015 18:28, Alexandru Razvan Caciulescu a écrit :
One more thing: if i want to change the address or port where the server is listening how would I do that ?
I tried to edit the following files : LeshanStandalone.java , LeshanServerBuilder.java and LwM2mBootstrapServerImpl.java, then recompiled and ran following the instructions and i noticed the changes i made aren't present. How should I do this correctly ?

Thank you,
Alex

2015-08-19 16:52 GMT+01:00 Alexandru Razvan Caciulescu <alex.darredevil@xxxxxxxxx>:
Hi Simon,

Thank you for the advice, after upgrading to maven 3.3.3 it works fine.

Alex

2015-08-18 11:21 GMT+01:00 Simon Bernard <contact@xxxxxxxxxxxxxxx>:
Hi,
 About the build problem, it's strange ... I just test it now and it works for me.
 The warning you get on mvn assembly:assembly is not expected.
[WARNING] Cannot include project artifact: org.eclipse.leshan:leshan-standalone:jar:0.1.11-M6-SNAPSHOT; it doesn't have an associated file or directory.
  Maybe you should try with a more recent version of maven. (I currently use the 3.3.3)
Simon


Le 18/08/2015 11:19, Alexandru Razvan Caciulescu a écrit :
Hello,

I am currently working on a LWM2M client for embedded devices and was thinking of using the LESHAN server to test against it. From what I read LESHAN supports both IPV4 and IPV6. I was wondering if it's possible to start the server on the IPV6 loopback instead of the IPV4 since we use only IPV6 addresses ?

Also I forked/cloned the leshan repo and followed the instructions for "Compile & Run" and there seems to be a problem, while it says the builds are successful it fails when I try to run it: "Error: Could not find or load main class org.eclipse.leshan.standalone.LeshanStandalone" 
The full build dump: http://pastebin.com/pUPd5Fe5

If I download the latest binary from the provided link that works.

Thank you,
Alexandru Caciulescu



_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev


_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev





_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev


_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev



Back to the top