mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
24 lines
462 B
Markdown
24 lines
462 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getIP](./bitburner.ns.getip.md)
|
|
|
|
## NS.getIP() method
|
|
|
|
Returns a string with the IP address of the server that the script is running on.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getIP(): string;
|
|
```
|
|
**Returns:**
|
|
|
|
string
|
|
|
|
IP address of the server that the script runs on.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0.05 GB
|
|
|