Comments (3)
It's possible, just make sure nginx sets the X-Real-IP
header.
Example config, assuming ifconfig
is running on 8080
:
server {
listen 80;
location / {
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
}
}
from echoip.
This does not work for me. I have the config in nginx exactly as above, but when I access the URL from the internet, the IP address show by ipd is the local IP of the nginx reverse proxy, not the IP address of the remote client. The remote client address does show in the nginx logs.
from echoip.
Sorry, forget this. I just noticed the -H option. -H X-Real-IP sorts it.
from echoip.
Related Issues (20)
- v4 shows IPv6 address HOT 1
- Starlink IP addresses HOT 1
- Alternate database HOT 1
- Expose Region code
- Docker compose file HOT 5
- Flags provided but not defined: docker-compose HOT 8
- Feature request: Show IPv4 AND IPv6 HOT 2
- Update GeoIP database
- New security measure preventing IP return HOT 7
- Please, add both ipv6 and ipv4 for ifconfig.co if ipv6 is available HOT 1
- Donations?
- Cloudflare stops the API access HOT 19
- Wrong identification of subnets ? HOT 1
- feature request: provide ipv4 only subdomain HOT 1
- How to install on Linux? HOT 1
- Issue with port 25 HOT 1
- Can this code work with the enterprise version of MaxMind?
- Suggestion: Support IP2Location LITE Database HOT 2
- How can I get round the CORS issue (Self Hosted)
- New Wiki page to detail how to run on Azure Websites HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echoip.