I want to accept the data through Ethernet via socket communication ? But while using EthernetInteface library its shows the error.
But while using EthernetInteface library its shows the error.
What kind of error? You should not have to add any library. Just use:
#include "mbed.h"
#include "EthernetInterface.h"
int main() {
EthernetInterface eth;
eth.connect();