In itself, it wouldn't help at all, I just highlighted the first part of the problem. We still need to modify the Session class as well. I don't, however, have a solution for that with which I'm satisfied.
I think it's a feature to be able to use IPv6, if it is available, so I don't want to change the Session class to simply ask for IPv4 addresses. If you have any suggestions on how to decide if IPv6 is available or not, feel free to share.