I ported OpenTcp on 8052. I can tell, that it successfully works on controllers of 8052 family. The size of code memory for different variants:
40 kb - with serial link, protocols SLIP, IP, ICMP, UDP, TCP
11 kb - with ethernet link (CS8900A), protocols: ARP, IP, ICMP (UDP and TCP will be later)
Thus, there are difficulties with debugging using the monitor M*N51, when RAM is 32kb.