IIS 10 send client ip as response header - iis

So, this problem has recently cropped up. I have an application that has been running for many years. The application is a RAD Studio C++ based web server application. In the application, I check the client's IP Address via Request->RemoteAddr. Suddenly (could be from a MS update) the RemoteAddr value is now the server's IP address instead of the client.
Is there a work-around or a fix for this?

Related

How to make dynamic private IP address static?

A node js server is running on localhost on my PC. I am connecting this server to a mobile app with some IP(192.168.0.120:8044) for API requests. I am sharing this IP address by scanning a QR code in my desktop electron app by mobile application. So the first time I am able to get the server's IP by QR.
But when my Desktop boots again. The private IP might change to maybe 192.168.0.121
Is there any way in node.js to make this private IP static so my mobile device can always know where to send all API requests?. like creating a custom subdomain locally not exposed to the internet?
I know I can just go to the PC's setting and make Ip static. But in production, it might be a big issue to ask users to do so.
While it may be possible to go into the computer's config programatically and make the IP static, it would be better to structure the application not to require such a thing.
Since the client initially connects to the server with a QR code, you could have the server embed its hardware MAC address in the code, instead of (or in addition to) the server's IP. On the client, save the MAC address in the app's permanent storage.
Then, to connect to the server from the client, search through the LAN's ARP table to identify which (if any) IP addresses have that MAC address. If so, you've found it - if not, the server is offline.

How did an IP send Get requests to my code?

I am new to web development. I am developing a flask web server on my linode linux web server on port 5000. I got this output from an unknown ip. I researched the ip and found out that this is a whitelisted IP address and is "harmless", but I dont know. It looks like it sent GET requests to my cover photo, the javascript, the css, an icon on the page, and an unknown request. What does sending a GET request to these items even entail? I dont have any button or anything that sends a get request to these items. Whenever I am developing the web server while on port 5000 I am usually the only IP on the output. Additionally, this web server communicates with a raspberry pi over mqtt over the non-encrypted port 1883.
Again, I am new to this world and am wondering if anyone can help me decipher what this means that would be very helpful. In the meantime should I will configure the servers firewall to only allow requests from my computers ip to my server? Anyone think this is a reasonable next step or have any additional advice?
I believe what's happening is that your website is sending a GET request to retrieve those assets (e.g. your images) which are stored under your localhost address and the paths that you see in the console output.

Ip Address: Does Lotus Notes Application have the Request and Response objects

Hi all as I am new to lotus notes applications have a doubt regarding request and response objects are present or not.
Let me take one example. I have a task to generate the IP Address of the client machine whoever is using my lotus notes web application. But when i use this below java code using agents it is giving me the Windows server IP Address instead of client IP address who has used my application.
InetAddress thisIp = InetAddress.getLocalHost();
System.out.println("IP ADDRESS:;::"+thisIp.getHostAddress());
But when it comes to java we have request and response objects where we can use proxy and capture the IP from the client machine.
Can anyone tell is it possible to use some other keywords instead of request and response.
For a web application, the client's address is a CGI variable called REMOTE_ADDR. No need to get any fancier than that. Just as an aside you have access to Java and all (or at least most) of its might within agents as well, but you don't need that for just the remote Web client's IP address.

Client IP Address Inconsistent between ASP.NET 5 Application and IIS Logs

We're writing an ASP.NET 5 (vNext) application that partly includes geocoding the user's location based on their IP address. We're attempting to grab the client's IP address using the following code found from a number of examples across the web:
var connection = context.HttpContext.GetFeature<IHttpConnectionFeature>();
if (connection != null) {
clientIpAddress = connection.RemoteIpAddress.ToString();
}
When we log the clientIpAddress that comes from the IHttpConnectionFeature, we find that the IP address is not correct.
However, we do notice that IIS is capturing the correct client IP address. We see this by inspecting the requests via the IIS control panel.
So, somewhere between the IIS request and our application code, the client's IP address is being modified, or our application code is not working properly with IIS. Or is it possible that IIS is performing extra work in deciphering the client's IP address - work that we need to mimic in our application code.
Why is the client's IP address correct in the IIS request logs, but not correct in our application code above? How do we grab the correct client IP address in our code?
Relevant software versions:
ASP.NET 5 (vNext)
KRE 1.0.0-beta2
IIS 8
Update: We ran a .NET 4.5 application on the same IIS server that retrieves the IP address using Request.UserHostAddress and it also retrieved the correct IP (the same one IIS is logging), so it seems to be an issue with the new .NET 5 code.
This was due to a bug in the Microsoft.AspNet.Loader.IIS package. Luckily, the guys at Microsoft speedily posted a fix.
For more context, see the Github issue: https://github.com/aspnet/HttpAbstractions/issues/181

Covert home pc to web server steps

I want to convert my home pc to a web server. Already IIS8 has been installed. The sample page has been published on default web site. In windows firewall the port 80 has been opened. I have access to this page through different computers that connect to the same ADSL router. However, when I try to connect to the page from another ISP, I get the error of 'web page not find'. Because I don't have static IP now, I find IP of the server from http://www.whatismyip.com/. I wonder if anybody help my to solve this issue.
One workaround it to use no-ip
http://www.noip.com/
this would give you static IP.
From this point is just normal domain setup.

Resources