Questions tagged [clientip]
50 questions
35
votes
3 answers
Get real client IP in a Servlet
I'm having some trouble with a simple problem. I would get the real client IP inside an HTTPServlet.
Since now I used:
request.getRemoteAddr()
But now it returns a false IP. eg: xxx.xxx.xxx.50 but my IP is something like xxx.xxx.xxx.159. (checked…

TAR515
- 379
- 1
- 4
- 12
9
votes
1 answer
Nodejs ip address result ::1
I have a realy interesting problem. I have a web site and i want to get client ip address. I found some solition but none of them work. I am using nginx.
i am using expressjs
app.post("/api/test",(req,…

Furkan Aydın
- 99
- 2
- 9
9
votes
1 answer
Preserving remote client IP with Ingress
My goal is to make my web application (deployed on Kubernetes 1.4 cluster) see the IP of the client that originally made the HTTP request. As I'm planning to run the application on a bare-metal cluster, GCE and the…

Marcin Nowrot
- 93
- 1
- 5
5
votes
2 answers
How to get client / user ip address?
Is it possible to get the ip address of the user (visitor of my website) without using server side language like PHP?
I have a problem while using the server language (PHP) because of load balancer for my server. I tried http_x_forwared_for that is…

RajeshKumar.K
- 221
- 2
- 3
- 8
4
votes
1 answer
How to find client ip for https request (i.e secured connection) in Rails 2.3.8
Im doing a app in which i need to find the clients ip address. I used request.remote_ip for getting the client's ip and it fetched the public ip address of the client for http request. When it is a https request request.remote_ip fetched different…

Bharath kumar
- 41
- 3
2
votes
3 answers
Get the client IP on NextJS and use SSR
I'm making a weather app, and I get the client IP with IPIFY, but this loses SSR, or I use SSR and I get the server IP. Someone told
me that I could use the header x-forwarded-for and then, with this value, make the weather API call with SSR.
The…

EverStarck
- 33
- 1
- 1
- 6
2
votes
1 answer
Asp.net Core Remote IP Address get local ip (192.168.1.1)
I am getting IP address by following code:
var remoteIpAddress = HttpContext?.Connection?.RemoteIpAddress?.ToString ();
This is working okay when I am running on IIS with accessing by IP address (public IP address of my ISP network).
I host on…

Sras
- 1,686
- 2
- 19
- 29
2
votes
1 answer
Get clients wan ip adddress when api controller is called
I have a JavaScript ajax call to my web api controller. I need to get their wan ip address when they make that call.
I have seen many examples for MVC but I am using asp.net core and the methods there do not work. The value(s) are always null.
This…

Andrew Simpson
- 6,883
- 11
- 79
- 179
2
votes
0 answers
Kubernetes (GKE) on Google Cloud : Get Real IP of the client from Traefik
I am using Google Kubernetes Engine on Google Cloud Platform (GCP): I am using traefik ingress in GKE.
How do I get the real source IP of the client in the backend services behind traefik ?
I tried setting externalTrafficPolicy: Local in GKE but,…

Prakash Premkumar
- 99
- 1
- 6
2
votes
1 answer
Getting client_ip in PHP application with apache server
I am new to PHP and I am given a task to work on geolocation.
I want to get client_ip in my php application. The application is deployed on AWS and has 2 load balancers and apache web server.
I have tried following:
if…

Pradeepb
- 2,564
- 3
- 25
- 46
2
votes
1 answer
Angular 5, Getting actual network IP Address
Hi Angular 2/5/6 Gurus,
I was trying this, to get my machine's network IP address. But I got "localhost" as an IP address instead. I was expecting the result for this one to be like 10.0.5.21 for example.
Is there anyway I can get this?
Heaps of…

Artanis Zeratul
- 963
- 2
- 14
- 40
2
votes
2 answers
get Client IP in a flask based application
I have Flask application deployed in server. and we are using Nginx. nginx setup is as below:
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_read_timeout 25s;
proxy_pass…

Pradeepb
- 2,564
- 3
- 25
- 46
2
votes
1 answer
Cannot get visitor's public IP in Google Cloud Compute engine instance (container cluster created)
Recently I deployed a website in google cloud container cluster, and I believe that the actual website source code is run inside the computer engine instance which created by cluster automatically.
In the website, I want to log the visitor's access…

Charles
- 675
- 3
- 12
- 21
2
votes
1 answer
How to get the client IP in a dart shelf-rpc server
I have a dart web service application written with Shelf and Rpc apis.
I need to check the client Ip inside my api methods, but I cannot figure how.
The context method does not contain the HttpRequest .contentInfo property.
More, also the shelf…

J F
- 1,058
- 2
- 10
- 21
2
votes
3 answers
Can we get IP address and/or machine of client accessing a particular website?
I'm having a scenario wherein I need either the machine name of the client who is accessing my website or his actual IP address.
I did a lot of searching and browsing and I found that most of the responses suggested me to use…

Amogh Natu
- 781
- 1
- 10
- 37