Difficult debugging problem

That’s suspiciously close to 32K. What does cat /proc/sys/net/ipv4/ip_local_port_range show and have you tried increasing it?