Fix test to avoid a fixed local port

The test now picks a free port rather than using a hardcoded
one.

Bug: 17979533
Change-Id: I84ac8e7ff00e106476210a1935fc41f9b5580ab2
1 file changed