[AS7-6878] Take the port from the SocketAddress so any offset can be taken into account.