3,854 questions
0
votes
0
answers
61
views
Is it possible to have RPZ File to apply for specific IPs in POWERDNS RECURSOR via Lua Scripting?
I need to apply different RPZ files based on client IP address. I load all RPZ files at startup, then try to discard policies not meant for the requesting IP, but it's not working. Will be needing ...
0
votes
0
answers
39
views
How to launch Safari private browsing for Private Relay on Java Selenium?
I’m currently working on a Selenium project in Java that requires using Safari to take advantage of iCloud Private Relay’s IP shuffle functionality. After launching Safari from Selenium, I’m checking ...
0
votes
1
answer
85
views
Dynamic IP Address Handling in Content Security Policy (CSP) with Helmet in a NestJS Backend
Question:
I am working on a web application with a React frontend and a NestJS backend. The backend uses Helmet to manage the Content Security Policy (CSP).
My frontend needs to connect to an API ...
0
votes
2
answers
410
views
.NET Blazor 9: Capture client ip address
Is anyone able to capture for component use, a client IP address, in Blazor 9 hosted in Azure?
This question has been asked for several years, but for previous Blazor versions; IMHO, there isn't a ...
0
votes
1
answer
102
views
Sorting a list of IP addresses into unique network address with the ranges of host addresses
I have a list of IP addresses from an API call:
ips = ["10.135.0.80","10.135.0.81","10.135.0.83","10.135.1.200","10.135.1.220","10.160.150.2"...
1
vote
1
answer
196
views
Get Local, Active IPv4 Address in Node.js
I'm attempting to develop a program that communicates between devices over the HTTP protocol. If I hardcode the active IP address of the current device (i.e., the local IPv4 address that the network's ...
0
votes
1
answer
120
views
Is this PHP function correct to check if IPV6 is in given prefix?
I need to check if visitor IPv6 is in given prefix (I have some whitelisted ipv6 prefixes).
I adjusted the below function using two different functions from StackOverflow (one was converting an ipv6 ...
1
vote
1
answer
310
views
JOOQ + PostgreSQL: how to cast String as Inet type during insert
What's the proper way to prepare an insert statement so a String representing an IP address can be inserted into a Postgres column of 'inet' type?
val rDate = LocalDateTime.parse("2018-12-29T02:...
1
vote
3
answers
64
views
Using Kotlin HOFs to split, transform, and join elements from String list
Goal:
Given a list of String representing IP addresses
split into 4 octets by removing '.'
transform split pieces by padding with zeros (if size == 1 or 2)
join pieces into a 12-char String, ...
1
vote
1
answer
387
views
Preventing SSRF when sending Webhooks via HttpClient
I want a server application to send webhooks (i.e. outgoing http-post requests) to user-controlled http(s) URLs. A naive implementation of that functionality is vulnerable to server-side request ...
0
votes
1
answer
751
views
Verify that user agent facebookexternalhit is really Facebook
I'm seeing a lot of hits on my website with the following user agent:
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
I'm trying to verify whether it really is from Facebook ...
1
vote
1
answer
998
views
Getting Azure front door IP Instead of client IP
Hello I am trying to fetch IP. My application is running on Microsoft Azure so remoteIpAddr and remoteHost is saving Azure Frontdoor IP. Whereas ipAddress is null .. How to fetch the Client's IP ? How ...
0
votes
1
answer
41
views
apache2 how to prevent automatic directory listing for all except specific ip address
I want clients to be denied automatic directory listings, other than those from specific ip addresses.
What should I put in my virtual host conf file?
I've tried
<Directory "/var/www/...
0
votes
0
answers
109
views
Getting hostname from IP (on LAN) programmatically. Tried three methods, neither worked
I've been looking through questions and solutions to my problem (getting hostnames from a set of IPs on iOS) for a few days. Only three IP resolution methods seem to be listed for anyone, and neither ...
0
votes
1
answer
3k
views
How can we know user location or Ip address in React? [duplicate]
I want to know user location and i tried multiple api but all of them are giving me wrong state and city name, if i don't provide ip address, like this api -> https://ipapi.co/json
but if i pass ip ...
1
vote
0
answers
99
views
How to get my public ipv4 address in my android application?
I am developing an android application and need to get my device's public IPV4 address to trigger an API, how can this be done. Some approaches I have tried I am sharing below
fun getIPAddress(): ...
0
votes
0
answers
42
views
scapy custom source address shows failure
I have a python server running on port 8000 (the simple "python3 -m http.server") and I want to send a request with a custom ip address to it, so I wrote:
from scapy.all import IP, TCP, send
...
0
votes
1
answer
97
views
Python IP validation giving incorrect results
I'm trying to validate IP, gateway and subnet mask inputs using the ipaddress library, however I'm getting invalid results when I'm actually trying to use the validated network, which makes me think ...
-2
votes
1
answer
115
views
Check If Computer On Network Is Asleep Without Waking It Up (Python)
I want a quick way to check if a computer on the LAN is awake or not given its IP address (on Windows) without waking it up. I wrote the following, which works:
def is_awake(ipOrName, timeout=0.05):
...
0
votes
0
answers
158
views
How to get an IP address and IP based location of another computer/user embedded on a gif without asking the users permission using javascript?
THESE ARE MY PRESENT CODES FOR GEOLOCATION (ASKING FOR PERMISSION):
FOR LOCATE.HTML FILE:
<!DOCTYPE html>
<html>
<body onload="getLocation()">
<iframe src="...
0
votes
1
answer
298
views
How can my client from another device access my docker nats-server?
I have a docker nats-server running in WSL.
docker run -d -p 4222:4222 -p 6222:6222 -p 8222:8222 --name my-nats-container nats:latest
When I run my client on my host machine, it connects fine.
But ...
0
votes
1
answer
45
views
How many IP addresses that can be configured for multiple groups of ConfigNode and DataNode in Apache IoTDB?
In the distributed cluster of Apache IoTDB with 3 ConfigNodes and 3 DataNodes, how many IP addresses should I configure for the ConfigNode configuration parameter cn_target_config_node_list, and the ...
0
votes
1
answer
161
views
IP address is not available anymore after updating a container instance
I just try to update my existing container instance image using this command :
az container create -g ressourcegroup --name sonar --image sonarqube:8.9-community --ports 9000 --location eastus --cpu ...
0
votes
1
answer
942
views
Generate IP range from CIDR notation issue in powershell
I have the following powershell function, and I want to return the IP range from a CIDR.
Here is the code:
function ConvertFrom-CidrNotation {
param(
[Parameter(Mandatory=$true)]
[...
3
votes
1
answer
58
views
Express.js: Parsing Predomain from URL works with localhost but not with 127.0.0.1
I've implemented a simple Express.js application that extracts the predomain from incoming requests' hostnames. The code seems to be functioning correctly when I use localhost:3000, but it fails when ...