LCM over newtork

1,158 views
Skip to first unread message

Joe

unread,
Jun 30, 2014, 4:53:38 PM6/30/14
to lcm-...@googlegroups.com
I am trying to communicate between two different machines using lcm, does any one have any working examples.

I have changed the LCM_DEFAULT_URL=udpm/192.168.1.120:7667?ttl=1, with 192.168.1.120 being the IP address of my machine however I get the following error;

setsockopt (IPPROTO_IP, IP_ADD_MEMBERSHIP): Invalid argument
Traceback (most recent call last):
  File "listener.py", line 16, in <module>
    lc = lcm.LCM()
RuntimeError: Couldn't create LCM

what am I doing wrong?

Anthony Bonkoski

unread,
Jun 30, 2014, 4:58:06 PM6/30/14
to lcm-...@googlegroups.com
LCM normally communicates over UDP Multicast.
You need to use an IP in the range 224.0.0.0 through 239.255.255.255

The default IP with ttl=1 should suffice, given you don't have any routing issues (udpm://239.255.76.67:7667?ttl=1)

-Anthony



--
You received this message because you are subscribed to the Google Groups "Lightweight Communications and Marshalling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lcm-users+...@googlegroups.com.
To post to this group, send email to lcm-...@googlegroups.com.
Visit this group at http://groups.google.com/group/lcm-users.
For more options, visit https://groups.google.com/d/optout.



--
Anthony J Bonkoski
University of Michigan Computer Science BSE 2013
Roboticist, Security Hobbyist, and Compiler Enthusiast (jabsoft.io)

Message has been deleted

Joe

unread,
Jul 1, 2014, 10:23:08 AM7/1/14
to lcm-...@googlegroups.com
Hi Anthony, Thanks for the pointer. I have it working now. My mistake was using the IP address of my machine rather than a UDP Multicast address. After using the same UDP Multicast address on both sides, I got it working.

Thanks again.

Pradeep

unread,
Sep 15, 2016, 9:56:56 AM9/15/16
to Lightweight Communications and Marshalling
Hi Joe,

I'm facing a similar issue. I have to run my client and the server on separate PCs. Its using LCM and the default LCM url, which is "udpm://239.255.76.67?ttl=1". But I'm unable to make them communicate between each other. The code is in Java. Could you please suggest on how you got them to work ? Do I need to change the IP address of both the machines ? 

Thanks & Regards,
Pradeep

Jonathan Bendes

unread,
Sep 15, 2016, 10:08:30 AM9/15/16
to lcm-...@googlegroups.com
Hey Pradeep,

I think your issue is small. You forgot the port in your URL and your URL prefix is wrong.


Should be


Hope that works.
Jonathan


Message has been deleted

Pradeep

unread,
Sep 15, 2016, 11:20:27 AM9/15/16
to Lightweight Communications and Marshalling
Hey Jon,

I forgot to mention in the above thread. Sorry about that. Its lcm  = new LCM("udpm://239.255.76.67:7667?ttl=1");

Thanks & Regards,
Pradeep
Reply all
Reply to author
Forward
Message has been deleted
0 new messages