Questions tagged [clientip]
50 questions
0
votes
1 answer
Unable to control Cross origin request even after specifying Access-Control-Allow-Origin header inside filter of Springboot application
I added the following filter code to my project -
package com.package;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import…

Sandeepan Nath
- 9,966
- 17
- 86
- 144
0
votes
0 answers
Cross Origin whitelisted IP is not applying even after defining using @CrossOrigin annotation on Springboot project
I followed https://spring.io/guides/gs/rest-service-cors/ and added a random IP like this, to one of my API end points -
@Produces(MediaType.APPLICATION_JSON)
@CrossOrigin(origins = "116.206.111.61")
public XAmount getBalance(@Context…

Sandeepan Nath
- 9,966
- 17
- 86
- 144
0
votes
1 answer
Change client IP to proxy IP for API requests
Original client IP does not change when I use a reverse-proxy to use some API from an internal corporate server.
So far I've done what most people suggested on Internet.
Just putting in proxyPass stuff in Apache config files.
Basically the setup is…

Sonic
- 1
- 1
0
votes
1 answer
How to get clients actual address in java
We have an application which runs on multiple microservice systems.Lets consider a scenario where client requests something from microservice1 and microservice1 invokes an API on microservice2. In this scenario I want to get clients_ip_address in…

Srumith Uplanchi
- 85
- 1
- 11
0
votes
2 answers
Sending Proxy protocol to Server that doesn't support Proxy Protocol
I have a HTTP Acceleration solution that use reverse proxy. In order the provide the client IP to the server I'm trying to add proxy protocol support in my HTTP Acceleration solution. Although as the HTTP Acceleration solution endpoint itself can…

Swarvanu Sengupta
- 360
- 4
- 11
0
votes
1 answer
Get remote client ip address NodeJS, ExpressJs
I am trying to get client's ip address with Express js, code is as follows:
var ip;
if (req.headers['x-forwarded-for']) {
ip = req.headers['x-forwarded-for'].split(",")[0];
} else if (req.connection && req.connection.remoteAddress) {
ip =…

Vikas Kad
- 1,013
- 1
- 18
- 38
0
votes
0 answers
How to fix it in Laravel while I'am getting the localhost 127.0.0.1 instead of getting clients real IP address?
I was trying to get the user IP by using:
$request->ip();
but this return me the localhost ip 127.0.0.1
here is my code:
public function index(Request $request)
{
$userIP= $request->ip();
return…

Mosharof Hossain
- 87
- 2
- 9
0
votes
0 answers
x-forwaded-for add to http request header
My web application does not return "x-forwarded-for" header in the HTTP request. I need to this header to identify client IP as the application otherwise returns load balancer/proxy IP using getRemoteAddr().

Palak
- 25
- 1
- 1
- 8
0
votes
1 answer
How to get parent url referrer in c#
I wrote a code to work as a web counter. It generates javascript output in OutPutStream so I could use the script in another website to give it a free website counter.
The problem is that when I want to get the referrer, it returns the page where…

Farrokh Motaghi
- 3
- 4
0
votes
1 answer
how to get remote IP in a static class in asp.net core?
such as the question,because static class not IHttpContextAccessor and HttpContext property,how to solve it?
public static class IPHelper
{
//this is a wrong define
private readonly IHttpContextAccessor _accessor;
public string…

amazing
- 39
- 7
0
votes
0 answers
Spray clientIP giving wrong address
I have an akka-spray server behind nginx in a docker image running on ElasticBeanstalk. I'm trying to get the client IP with this:
(path("myip") & get) {
clientIP {
ip => complete("Client's ip is " +…

thund
- 1,842
- 2
- 21
- 31
0
votes
2 answers
Behind AWS ELB : How to grab the Real IP from "netstat"?
I'm using AWS Elastic Load Balancing (ELB) in front of 2 Linux Web Servers. But (based on my requirement) i need to know the Real IPs from the Web Servers' perspective, especially when i use netstat.
I need to know the number of incoming connections…

夏期劇場
- 17,821
- 44
- 135
- 217
0
votes
1 answer
Getting Client IP Using PHP with Load Balancer (X-Forwarded-For Header)
Here's my situation: I have a PHP website set up with IIS 7 and an F5 load balancer. I need to retrieve the client IP address that is accessing the server.
As expected in this scenario, $_SERVER['REMOTE_ADDR'] returns the IP address of the load…

Dean Zaslow
- 87
- 2
- 9
0
votes
2 answers
Client recognition by ip
I want to track the clients that visits my site, and save them by IP.
That way, next time he will visit my site I could customize my site to match is needs and make it more personal.
One of my problems is that the clients IP is constantly…

shacham solomovitz
- 15
- 3
0
votes
1 answer
json - Getting user IP address - NonFree
I have a question. I have a website that is visited by 3000000 visitors per day. I have to detect their IP address and make a decision for them.
I do not want to use my own application. I just want to call a cloud platform to identify this.
E.g.:…

Erhan H.
- 520
- 4
- 14
- 24