PublicPort instance fix

Fixes issue #280