[fixes #2] simplifies configuration for different ports/protocols