-3

I have a board connected to my PC through the LAN(i.e network port). I know the IP address and port number of both my PC and board.

I came to know that we have to use socket programming but i am not understanding how to use.

How to set up connection between the two using socket and write the data from PC to the board and read back the data from the board back to PC and print it on the screen.

A program for this would be helpful for me.Please help

Thanks in advance.

link
  • 35
  • 7
  • possible duplicate of [Sending frames in java](http://stackoverflow.com/questions/2168898/sending-frames-in-java) – Joe Jan 28 '15 at 11:08
  • Since you mention ports I suspect you are talking about tcp/udp packets and not raw ethernet frames.Read about java sockets. – SteveL Jan 28 '15 at 11:15
  • using destination port number and sending data is about tcp packets or the raw ethernet frames – link Jan 28 '15 at 11:22
  • can anyone help me with this plz – link Jan 30 '15 at 04:34

1 Answers1

0

You should use Socket. Take a look here:

Giulio Biagini
  • 935
  • 5
  • 8