@.net.hostIPs()
APINetwork
获得本地IP地址
调用方法
- () -> [ip ...]
- (onlyInternal) -> [ip ...]
- (onlyInternal, ipV6) -> [ip ...]
参数介绍
- onlyInternal: Boolean可空是否只显示内部回环IP
- ipV6: Boolean可空是否返回IPV6的IP
关联API
- @.net.availablePort()
- @.net.httpClient()
- @.net.jsonrpcClient()
- @.net.lookupNS()
- @.net.wsClient()
- @.net.wsServer()