This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error on implementing lwip tcp client & server on same machine

Hello,

I am using cortex M-3 lm3S6965 controller where I am writing application as Modbus tcp client and server using lwip:

1. it has one tcp server which listen on port 502 & it works on Modbus protocol.
2. one tcp client which tries to connect 4-5 different tcp server one after another, i.e. a. connect to one tcp server at a time b. send modbus query c. wait for response from server d. read response e. close connection f. repeat steps a-e for all server

3. when I try to access my server port 502 from outside, it gets connected.
4. My client socket also connect to outside server.

But once my client socket starts communicating with the outside server(here I am using modsim32 in tcp server mode), then after I am unable to access my server socket(i.e. 502) unless & until I reset my board.

so what is the problem with client & server mode application on same machine...
could any one plz help?

Thanks in advance.