environment specific port in socket test