i stop work on my serial porject and now must do TCP so do some one have some code for it?
Yes, there is a huge amount of code for TCP in general, and TCP on the 8051 in particular.
You could start here: http://www.keil.com/tcpip/