Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2026.1

# ServerHelperApi::SetPort(const StrPtr*)

Sets the server connection information.

Virtual? | No |
Class | `ServerHelperApi` |
Arguments | `const StrPtr *name` | the hostname and port to connect to
Returns | `void` |

## Notes

Sets the hostname and port that will be connected to. It should be of the form 'hostname:port' such as 'helix.perforce.com:1666'.

Your search for returned results