Use binding function for sockets