Use first argument as port number

Change-Id: I66101f63e34753b6e5fe17d2c085d4b2c90eeb63