can you show us what "ip route" and "ip addr" show?
David
On Saturday 28 February 2015 08:22:29 Bruce Gibson wrote:
> Thanks for the suggestion. Without the cable connected and I do a ifdown I
> get:
> ifdown: interface eth0 not configured
> as there was no inet addr assocatied to eth0.
>
> To reiterate, the wireless works *When* the cable is connected.
>
> On Saturday, February 28, 2015 at 4:28:53 AM UTC-5, David Goodenough wrote:
> > On Friday 27 February 2015 17:23:31 Bruce Gibson wrote:
> > > I'm running the client server example programs from Derek Molloy's fine
> > > book (chapter 10). I've put the server on the beaglebone and the client
> >
> > on
> >
> > > a separate Linux PC.
> > >
> > > Server code:
> > >
> > > int main(int argc, char *argv[]){
> > >
> > > cout << "Starting EBB Server Example" << endl;
> > > SocketServer server(54321);
> > > cout << "Listening for a connection..." << endl;
> > > server.listen();
> > > string rec = server.receive(1024);
> > > cout << "Received from the client [" << rec << "]" << endl;
> > > string message("The Server says thanks!");
> > > cout << "Sending back [" << message << "]" << endl;
> > > server.send(message);
> > > cout << "End of EBB Server Example" << endl;
> > >
> > > }
> > >
> > > Client Code:
> > >
> > > int main(int argc, char *argv[]){
> > >
> > > if(argc!=2){
> > >
> > > cout << "Incorrect usage: " << endl;
> > > cout << " client server_name" << endl;
> > > return 2;
> > >
> > > }
> > > cout << "Starting EBB Client Example" << endl;
> > > SocketClient sc(argv[1], 54321);
> > > sc.connectToServer();
> > > string message("Hello from the Client");
> > > cout << "Sending [" << message << "]" << endl;
> > > sc.send(message);
> > > string rec = sc.receive(1024);
> > > cout << "Received [" << rec << "]" << endl;
> > > cout << "End of EBB Client Example" << endl;
> > >
> > > }
> > >
> > > The examples work great when I plug the BBB directly using the Ethernet
> > > port. The client talks to the Ethernet port at 192.168.1.36.
> > >
> > > I've also setup wireless to work on the BBB using an Edimax dongle. It
> > > shows up at 192.168.1.38. If I run the client pointing to the wireless
> > > address it doesn't work.
> > >
> > > If I plug the Ethernet cable back into the BBB with the wireless dongle
> > > also attached... the wireless address 192.168.1.38 now starts working
> >
> > with
> >
> > > the client. The wireless otherwise seems fine. I can ping & wget using
> >
> > just
> >
> > > the dongle attached (no Ethernet plugged in).
> > >
> > > Any suggestions? Not sure how I would even debug this?
> > >
> > > Thanks,
> >
> > When you try the wireless, did you disable the ethernet connection? This
> > is not just disconnecting it, but also ifdown. Unless you have something
> > link ifplugd installed the ethernet connection still exists when the cable
> > is disconnected - it judt does not work. So either install ifplugd or use
> > ifdown when you disconnect the cable.
> >
> > David
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.