3,846 questions
Advice
0
votes
1
replies
73
views
Using ipapi to get ip address
I am running the following code:
import {useEffect, useState} from "react";
import axios from "axios";
function ObterIP() {
const [ip, setIP] = useState("");
...
Score of 0
0 answers
123 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 ...
Score of 1
0 answers
411 views
Is there a way to set/configure gdb to print IP addresses fields in the friendly three dot string format instead doing manual conversions?
I am debugging a network program with gdb. IPs are showed as raw whole numbers, instead of usual IP strings (xxx.xxx.xxx.xxx).
Example:
(gdb) p addr
$1 = {sin_family = 2, sin_port = 2000,
sin_addr =...
Score of 0
0 answers
53 views
Receive Broadcast UDP Datagram Packet
An application running on the iPad is sending out a broadcast message once every 10 seconds on Port 6122. The goal is to read this message in my Laptop. I'm running the below C# program in my Laptop....
Score of 0
1 answer
168 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 ...
Score of 0
1 answer
537 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 ...
Score of -1
1 answer
164 views
Vite/Preact non-hardcoded proxy best practice
I have a preact frontend with a FastAPI backend. Everything works fine on localhost.
But I had problems reaching my server, from another ip-address, which i solved by changing the fetches from http://...
Score of 0
1 answer
130 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"...
Score of 1
0 answers
256 views
How to seamlessly provide Client IP address on both SSR runtime and Client side in Angular 18?
I'm working with Angular 18 and need to retrieve the client's IP address during both server-side rendering (SSR) and client-side rendering. I've come across this answer on how to achieve this with ...
Score of 1
1 answer
247 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 ...
Score of 1
0 answers
431 views
Add IP address with CIDR mask to nftables set in Go
adding a regular IP address (for example fe80::1 or 127.0.0.1) to an nftables set works by parsing the address with net.ParseIP and then converting it to []bytes for listing as a Key in a []nftables....
Score of 0
1 answer
148 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 ...
Score of 0
1 answer
119 views
expo-go development app not communicating with flask API
Problem details
I am running an Android Expo Go app in development mode which appears to be available at these locations:
› Choose an app to open your project at
http://192.168.0.49:8081/_expo/...
Score of 1
1 answer
399 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:...
Score of 0
1 answer
193 views
kotlin-exposed DB lib: insert using Potgresql 'inet' type
Starting out with Exposed & Postgresql.
No issues creating table objects, connecting to db, and executing queries. But I'm not sure how to deal with Postgresql-specific types.
I have an inet col ...