Use port settings in ssl detection
Remove unused Server function