You can not retrieve just the IP. You would need to parse out the information you need. This would take a lot of CPU and RAM if you had a lot of connections.
It would be nice to have this functionality out of the box from MT but I doubt we will ever see it.
You should try solving your issue from a different perspective like connection limiting rules and Queues.