This PR introduces TestSocketUtils as a replacement for the deprecated SocketUtils. It was borrowed from https://github.com/spring-projects/spring-framework/blob/main/spring-core/src/testFixtures/java/org/springframework/core/testfixture/net/TestSocketUtils.java.

Fixes #28210

Comment From: sbrannen

This has been merged into 5.3.x and main in ee51dab1f348361f26c477ad64ab730ad7359d6e and revised in 698f8995f72239d11052e1319c6b2802a34ba3e8.

Thanks