core: function to search socket by name