[Home](./index.md) > [bitburner](./bitburner.md) > [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) > [constants](./bitburner.hacknetserversformulas.constants.md)
## HacknetServersFormulas.constants() method
All constants used by the game.
Signature:
```typescript
constants(): HacknetServerConstants;
```
Returns:
[HacknetServerConstants](./bitburner.hacknetserverconstants.md)
An object with all hacknet server constants used by the game.