# remote-ip

> get remote-ip when request

Latest version **1.0.1** (published 2016-10-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install remote-ip
pnpm add remote-ip
yarn add remote-ip
bun add remote-ip
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-10-20 |
| First published | 2016-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chenxianming |
| Maintainers | cxm |
| Keywords | request, ip |

## Links

- npm: https://www.npmjs.com/package/remote-ip
- Repository: https://github.com/chenxianming/remote-ip
- Homepage: https://github.com/chenxianming/remote-ip#readme
- Issues: https://github.com/chenxianming/remote-ip/issues
- npm.io page: https://npm.io/package/remote-ip

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-10-20
- 1.0.0 — 2016-10-20

## README

# remote-ip

A simple function for get the client ip on http request

#Get started


#Install:

    npm install remote-ip


#Usage:

    var getIp = require('remote-ip');
    
    getIp(request); //ip address
    
    
#Example:

    var http = require('http');
    
    var getIp = require('remote-ip');

    http.createServer(function(req,res){
        res.writeHead(200,{
            "content-type":"text/plain"
        });
        
        var ip = getIp(req); //your client ip
        console.log(ip);
        
        res.end();
    }).listen(3000);
    
or on express
    
    var getIp = require('remote-ip');
    
    router.get('/',function(req,res,next){
        
        var ip = getIp(req); //your client ip
        console.log(ip);
        
    });

---
_Source: https://npm.io/package/remote-ip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
