Pass the Locator port as a string.

For some weird reason, the previous code compiled without even a
warning, but instead of a port string it passed some random shit.