Help with Client Port setup in Ethernet library

Hello,

I need to have about 20 arduinos connected to the internet and sending some data to my server.
Every arduino has its IP address, but Ethernet library gives the same Port (1024) to all of them.

When these arduinos connect to the server. The server see the source WAN IP and the same Port for all of them. Server can't distinguish / identify each arduino. Connected Arduino is disconnected by the server imediately when a next Arduino wants to connect.

I have read about this problem in other topic Ethernet Shield (Wiz5100) Probles with reoccuring requests
where I read I need to change EthernetClient.cpp Line 53

Does this issue is already solved somehow?

Thank you for any answer or advice.
Petr

Every arduino has its IP address, but Ethernet library gives the same Port (1024) to all of them.

No. It doesn't. YOU select the port to connect to.

Server can't distinguish / identify each arduino.

No two devices should have the same IP address, so it certainly should be able to.

Connected Arduino is disconnected by the server imediately when a next Arduino wants to connect.

Then your server is fucked up.