Re: [beagleboard] SO_BINDTODEVICE

2014-06-02 Thread A P
> OK tried it running as Su > i.e root@beaglebone\ ./myproj the executable runs but I am guessing the problem persists as it picks up the wifi IP address still So this is telling me that SO_BINDTODEVICE does not work ? or I am doing something else wrong - but everything that go

Re: [beagleboard] SO_BINDTODEVICE

2014-06-02 Thread A P
Thank you both for you quick replies. I am Running my program as debug via Eclipse in the debug configuration there is a set up option for the command to run before the program, I have the line "sudo chmod u+s /home/debian/bin/test/myproj" here. > -- For more options, visit http://beagle

Re: [beagleboard] SO_BINDTODEVICE

2014-05-30 Thread William Hermans
A P, try running the program as root to find out if it works. If it does you may need to run sudo with the -S parameter. man sudo in any case. On Fri, May 30, 2014 at 4:06 AM, Dieter Wirz wrote: > Did you try to run your program as root, with su or sudo? > eg: > ~ sudo yourprogram > or > ~ su >

Re: [beagleboard] SO_BINDTODEVICE

2014-05-30 Thread Dieter Wirz
Did you try to run your program as root, with su or sudo? eg: ~ sudo yourprogram or ~ su ~ yourprogram On Fri, May 30, 2014 at 10:58 AM, A P wrote: > > > Hi, > > System setup : > > Beaglebone Black with Debian from SD card, Ethernet and Wifi. Cross > compiling on Windows 7 machine. > Running pro

[beagleboard] SO_BINDTODEVICE

2014-05-30 Thread A P
Hi, System setup : Beaglebone Black with Debian from SD card, Ethernet and Wifi. Cross compiling on Windows 7 machine. Running program in debug mode via Eclipse (Win7) using gdb as debugger Problem: I am writing an application that requires ethernet and wifi (via usb) on the beaglebone black