UDP Setup in Windows

658 views
Skip to first unread message

Thomas Brady

unread,
Feb 20, 2014, 12:01:26 PM2/20/14
to lcm-...@googlegroups.com
Hey all,

I imagine many of you have had success using LCM in Windows.  Here's my situation.  LCM builds fine and I have a simple application that publishes a small LCM message.  I'm using udpm://239.255.76.67:7667?ttl=1 in the LCM constructor (C++).

However, I don't believe my routing tables are set up right as I'm not able to actually see this message anywhere except locally. My router is set up for multicast.

The bash line I'm trying to reproduce in Windows is:
sudo route add -net 239.0.0.0 netmask 255.0.0.0 dev lo

What I've come up with so far is :
route add 239.0.0.0 mask 255.0.0.0 gateway ???

Any direction on this is greatly appreciated!

Best,
Tom

PS:  I unfortunately have no choice but to use Windows for this application. 


Pritpaul Mahal

unread,
Feb 20, 2014, 12:06:15 PM2/20/14
to lcm-...@googlegroups.com
- run a cmd.exe as administrator
- run route print
- scroll to the top of the output where you have an interface list, and
note the interface number (on the very left) of the interface you want
to route the traffic over
- route add 239.0.0.0 mask 255.0.0.0 0.0.0.0 if [n]
- replace [n] with the interface number
** - the 0.0.0.0 means on-link (no gateway)
- use route add -p [... ] to make a persistent route that lasts across
reboots

--Pritpaul


Thomas Brady wrote:
> Hey all,
>
> I imagine many of you have had success using LCM in Windows. Here's
> my situation. LCM builds fine and I have a simple application that
> publishes a small LCM message. I'm
> using udpm://239.255.76.67:7667?ttl=1 in the LCM constructor (C++).
>
> However, I don't believe my routing tables are set up right as I'm not
> able to actually see this message anywhere except locally. My router
> is set up for multicast.
>
> The bash line I'm trying to reproduce in Windows is:
> *sudo route add -net 239.0.0.0 netmask 255.0.0.0 dev lo
> *
>
> What I've come up with so far is :
> *route add 239.0.0.0 mask 255.0.0.0 gateway ???*
> *
> *
> Any direction on this is greatly appreciated!
>
> Best,
> Tom
>
> PS: I unfortunately have no choice but to use Windows for this
> application.
>
>
> --
> 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/groups/opt_out.


Thomas Brady

unread,
Feb 20, 2014, 2:09:50 PM2/20/14
to lcm-...@googlegroups.com
That did the trick.  Thanks a bunch!


To unsubscribe from this group and stop receiving emails from it, send an email to lcm-users+unsubscribe@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/groups/opt_out.


--
You received this message because you are subscribed to a topic in the Google Groups "Lightweight Communications and Marshalling" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lcm-users/1cBmi0FTGPA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lcm-users+unsubscribe@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/groups/opt_out.



--
Tom Brady
Chief Financial Officer, Control Systems Engineer
SkySpecs, LLC
Message has been deleted

rpkhu...@gmail.com

unread,
Jul 26, 2016, 3:02:55 PM7/26/16
to Lightweight Communications and Marshalling
Hello! 

I'm two years late to this party, but am having similar issues. I'm using an iMac and have 2 virtual machines running. 
-The first virtual machine is running Windows7
-The second virtual machine is running Ubuntu 14.04

LCM messages pass between the two virtual machines when TTL is set to 0. Unfortunately, I cannot get communication between the two virtual machines when I try to to setup multicast. 

On the Ubuntu machine I run (this is inherited, this is the setup that works with our robot)
sudo ifconfig lo multicast
sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev 

On the Windows machine I'm using udpm://224.255.76.67:7667?ttl=1 in the LCM constructor (C#). Route print returns 1.....Software loopback interface 1. A route for network destination 224.0.0.0, net mast: 240.0.0.0, gateway: on-link interface 127.0.0.1 already exists. (Even if I delete it and follow the above instructions, I'm stuck). 

Any ideas? 

Thanks!

Pradeep

unread,
Sep 19, 2016, 11:58:00 AM9/19/16
to Lightweight Communications and Marshalling
Hi 

I am working on a LCM Java application, where I need to run the server on the development board and the client on a windows laptop. Can you please let me know the procedure on how to get these two to work ? When I am executing both of them on the same machine, it works fine. But when I run them on two separate machines, I do not get any response.

Thanks & Regards,
Pradeep

On Thursday, February 20, 2014 at 12:06:15 PM UTC-5, Pritpaul Mahal wrote:
Reply all
Reply to author
Forward
0 new messages