If yuu want to make your application thread safe you have to implement lwip multithreading.The list of what to do that im going to show helped me resolving this problem: i wanted 5 thread calling the same function UDP_Server() (an UDP client created ...