Fix for custom port in sync strategy #377

#377