Ethernet Shield Ports

Hi all,

I have a question. I will make an UDP communication and I have 2 mega board and 2 ethernet shield( one is W5100 w SD card and other is EN28J60).

I am confused about port numbers. How many ports this boards can provide?

I need to open 2-3 port on each shield.

Thanks.

The w5100 has 4 sockets, so 4 is the max.

what about the ENJ28J60 ethernet shield?