Adding new method that works on sockets, not ports.