1,065 questions
-1
votes
1
answer
128
views
pnet Rust Checksum Calculation
I am using the nfq and pnet library to modify packets and redirect them (to another ip and port).
Modifying Udp and tcp ports i have already figured out and packets arrive at their newly set port. ...
0
votes
1
answer
112
views
Client disconnecting right after the connection has been made [closed]
I have been asked to implement a card game(the loading and save don't function as intended, but this shouldn't affect the connection) from a previous project in a TCP server/client situation.
In order ...
1
vote
1
answer
265
views
gRPC Application only listening for IPv6 Address
I am trying to run a Java gRPC Application on an Oracle Cloud Instance but it keeps listening only for IPv6 address
$ netstat -tulp | grep 16507
(Not all processes could be identified, non-owned ...
-1
votes
1
answer
41
views
Can read receipts implemented at the IPv4/TCP Layer detect data harvesting on a server?
I'm working on a project where I'm planning to implement custom read receipts at the IPv4/TCP layer by modifying the BSD networking stack.
My goal is to detect if someone is harvesting data from my ...
-1
votes
1
answer
47
views
Clarifying auto-assign IP feature
I'm struggling to interpret this AWS feature announcement: AWS supports dynamically removing and adding auto assigned public IPv4 address:
Amazon VPC announces a network interface setting to ...
0
votes
0
answers
172
views
Server can't ping Client, Client can't ping server, Switch between them can ping both
Ok I've been pulling my hair out over this for a while. I have a Windows Server 2016 machine that is running a database off it and all devices on the network can talk to the server except 2 of them. ...
0
votes
1
answer
566
views
Disabling Auto-assign public IP in AWS EKS managed node groups with terraform-aws-eks registry
AWS recently has started charging for all the IPv4 addresses associated with your EC2 instances, NAT gateways or public-facing interfaces. If we sum up, it will be a significant cost increase if you ...
1
vote
2
answers
275
views
Classic ASP: Check if a IP is within an IP range / CIDR [duplicate]
Using Classic ASP, I want to check if a given IP is within an IP range in CIDR (e.g. 192.168.0.0/24).
There are already some questions covering scenarios where I could get IP ranges from their CIDR, ...
1
vote
1
answer
176
views
Boost.Asio IP Header how to set and read DSCP or TOS field
My application (coded in C++, using Boost.Asio lib, running on a LINUX machine) handles several UDP Multicast / IP sockets.
(#1) For the outbound traffic, I need to set the DSCP field of the IP Header ...
0
votes
1
answer
153
views
Pricing for AWS VPC Public IPv4 Addresses
I created a RDS with Public Accessable flag set to true and connected it to public subnet of default VPC.
Then I realized that AWS charged me for Public IPv4 Addresses under the VPC section.
You can ...
0
votes
0
answers
473
views
WebRTC via TURN does not work between IPv4 and IPv6 users
I have the following setup:
User A uses IPv4
User B uses IPv6
TURN server (coturn) is available via both IPv4 and IPv6
When establishing WebRTC connection between two users I can see the exchange of ...
2
votes
2
answers
245
views
Computing checksum's for TCP packets from byte arrays
I asked a similar question recently but marked it as solved since I thought I found the answer when in fact my code only worked on specific cases while missing the bulk of cases. Anyways I am using ...
0
votes
0
answers
102
views
enabling ssl certificate to aws ec2 instance
if we run an aws ec2 instance and set the inbound rule to access certain port, then running an app on that port (like 0.0.0.0:3000) enables us to access the app from the public ipv4 address of the ...
0
votes
0
answers
193
views
Why does my macos configuration block IPv4-mapped IPv6 UDP responses?
I am currently debugging a DNS problem with an application on my mac. I am hoping somebody can point me in the correct direction for further debugging. My problem is that DNS requests made over a IPv6 ...
1
vote
0
answers
100
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(): ...
-3
votes
2
answers
179
views
PHP Get IPv4 Address
I have trouble getting IPv4 Address, as IPv6 seems automatically preferred.
However, this is very difficult, as my IP Whitelist system uses solely IPv4.
I am using following code to get the IP of the ...
0
votes
1
answer
197
views
How to test if the result of netip.ParsePrefix() is IPv6 in Go?
How can I determine that the CIDR block parsed by netip.ParsePrefix() was in IPv4 or IPv6 format?
With net.ParseCIDR() I could call .To4() and test for nil.
Is4() is not defined for netip.Prefix.
I ...
0
votes
1
answer
110
views
Getting Correct vs Wrong IPV4 Address in NodeJS running under AWS Lightsail [IP6to4]
We are running under a BitNami instance on AWS Lightsail.
Current NodeJS looks like this:
function getClientIPv4(req) {
let ipAddress;
const forwardedFor = req.headers['x-forwarded-for'];
if (...
1
vote
0
answers
102
views
Is it possible to use IPv4 prefixes (subnets) as "public IPs" in the network interface of an AWS EC2 instance?
I transferred a /24 subnet (256 IPs) to AWS via BYOIP and I would like to assign some of these IPs to EC2 instances.
I know it is possible to assign a small subset directly to the instance's network ...
0
votes
0
answers
217
views
Mangled packets from libnetfilter_queue do not reach destination
I'm trying to use libnetfilter_queue to add custom options to the IP headers of certain packets.
As a test, I've tried modifying the sample program from the libnetfilter_queue documentation (nf-queue....
0
votes
0
answers
401
views
Python code for read/write binary file and convert it to .pcap
I want to write a python script that reads a binary file (have no extension but when open in hex viewer software, IPv4 packets presents), search 45 in file, reads 3rd and 4th byte for determining the ...
-1
votes
1
answer
110
views
Socket for IPV4 mapped to IPV6
What socket family should be used for an IP that looks as follows and it is IP4 mapped to IPV6 as far as I know:
::ffff:171.167.66.44
AF_INET or AF_INET_6
Any useful documentation would be really ...
0
votes
1
answer
301
views
Can dual-stack sockets bind to specific IPv6 and IPv4 addresses?
Question is in the title. Is it possible that a dual-stack socket binds to one specific IPv6 address and another specific IPv4 address? Or do dual-stack sockets always need to bind to ::/0.0.0.0?
0
votes
2
answers
104
views
Why do queries run through MyDAC TMyConnection sometimes fail because the connection protocol (IPv4 vs IPv6) changes
Scenario
My application obtains the public IP address of the user by running a small PHP script on the same server that hosts my database. I then programatically insert that IP address into the remote ...
0
votes
0
answers
443
views
Bind to both IPv4 and IPv6 loopback
I'm trying to set a sensible secure default for a server application. I want out of the box the server to only bind to the loopback interface. The user can then make their own decision to open it up ...
0
votes
1
answer
369
views
How to find both IPv6 and IPv4 with PHP? [duplicate]
When I look up my ip address on a website, it offers both my IPv6 and IPv4 address. When I use a PHP-script it only return the IPv6 address (both $_SERVER['REMOTE_ADDR'] and getenv('REMOTE_ADDR')).
...
0
votes
1
answer
1k
views
CS50 Python - PSet 7 Numb3rs - "test_numb3rs.py catches numb3rs.py only checking if first byte of IPv4 address is in range"
I am currently working on the Problem Set 7 of CS50's Introduction to Programming with Python. We have to implement a function that expects an IPv4 address as input and checks whether this IPv4 ...
1
vote
1
answer
1k
views
Go http get force to use ipv4
I just simply want to have golang http get request to use ipv4 only.
And the answers from golang force net/http client to use IPv4 / IPv6 is not working for me. Moreover, I found the following answer, ...
0
votes
1
answer
78
views
regex validation for multiple input formats from a single input
I have a situation where I should check for 2 different cases from one input. There is a validation function which validates for domain names and ipv4 and ipv6 address. Since I am accepting the ...
0
votes
1
answer
234
views
Elastic/OpenSearch: query composite IP range like 123.[16-31].0.*
I want to run a query that filters out an IP range like 123.[16-31].0.* (16 and 31 are included). Generic example:
GET _search
{
"query": {
"bool": {
"must": {...
1
vote
1
answer
313
views
Using Python client for Prometheus on IPv6
I am writing a custom exporter for my application using the official Python client for Prometheus My code works fine with the below snippet, (I'm redacting the rest of the code as I think it is ...
1
vote
1
answer
229
views
Perl Mojolicious, Mojo::UserAgent use IPv4
How can I tell my Mojolicious Mojo::UserAgent to use only IPv4, is that possible somehow?
(something like: wget --inet4-only https://blabli.com)
Reason why I need this is that in Openshift Cluster ...
1
vote
1
answer
3k
views
NodeJS 18 breaks DNS resolution of localhost from 127.0.0.1 to ::1
I am working on a NodeJS monorepo which had applications on nodeV16 and I upgraded those to nodeV18. Many of those use localhost for communication. With Node 16, the localhost used to resolve in 127.0....
-3
votes
1
answer
271
views
Convert Expanded(long form) IPv6 to IPv4 in java [closed]
I've been trying for hours now to find a library or try to do it with java-core.
I'm trying to convert Expanded IPv6 to IPv4 but none of the googled methods does not work.
Also tried this library. ...
0
votes
1
answer
79
views
Why couldn't I bind the listenfd with my public IPv4 address, but I could do that with my public IPv6?
Here is my case:
I got my public IPv6 and public IPv4 from https://whatismyipaddress.com/, which were like:
IPv6: 2603:6080:1001:100:2042:----:----,
IPv4: 75.177.130.***.
Then I used the code below as ...
0
votes
2
answers
6k
views
IIS 10 - IP Address and Domain Restrictions settings are denying all traffic
I have a server that has multiple sites set up on it in IIS 10.
On one of the sites, I want to allow access to a range of IP Addresses, and deny traffic to the site from all other IP Addresses.
In IIS,...
0
votes
1
answer
465
views
PTR Record to IPv4 and IPv6 addresses
I was looking at the reverse DNS queiers in .pcap files and figured out that their PTR record format might vary. Namely, these are the last element from each line.
I can easily identify IPv4 addresses ...
1
vote
1
answer
392
views
What is the fastest way to add a new IPv4 address on a windows computer using c++?
I have been using the AddIPAddress() function to add a new IP address, but there is a ~4 second delay before the address is usable for communications and port binding.
I have looked into other ways of ...
0
votes
1
answer
465
views
How to write an ipv6 server script using Python 3.10
My English is not very good, so I used Machine translation. Please forgive me if I offended you*
I want to use IPv4 to enable external devices to access my project, but due to gateway issues, I am ...
0
votes
0
answers
103
views
How to make a SpringWeb jar listen to IPv4 on a Linux server
I uploaded a SpringWeb application (with embedded Tomcat) executable JAR file(wrapped by maven) to a Linux server. When I run this JAR file on my local (Windows) system, it can listen to both IPv4 and ...
2
votes
1
answer
2k
views
what is IPv4 CIDR while launching a custom VPC in AWS?
I am about to create a custom VPC in AWS . While creating, I could find a section IPv4 CIDR and a value to be entered . Could anyone tell me which value I should enter there?
0
votes
0
answers
39
views
Batchfile using finsdtr parameters to get IPv4 "Default Gateway" address value
I have several routers on my network, each with their own IPv4 address and I'm trying to save that address for a batchfile to use when returning to one network from another.
for /f "tokens=2 ...
1
vote
1
answer
674
views
How can I sort by IP address in jq?
How can I use jq to sort an array of objects by an IPv4 address value as a 32-bit integer rather than alphanumerically?
An illustration of what I mean with some extra formatting for visual clarity:
$ ...
0
votes
1
answer
270
views
c IPv4 multicast listener for UDP not receiving packets on ubuntu
for a tool i wrote a socket based udp listener which should also be able to receive multicasts.
For IPv6 this works just fine, but IPv4 just won't work.
I use a log with IPv4 Multicast packets and ...
0
votes
2
answers
548
views
How do I configure my Google App Engine's Firewall rules to accept IPv4?
I have a couple of applications running on Google App Engine (all standard environment). I would like to deny access to these services to all IP addresses except my own for the moment with a plan to ...
0
votes
1
answer
4k
views
Issue creating a default Docker compose network
I created a network, added the containers to the network and tried docker-compose up with the correct ip's that are on the network.json file but I can't put the containers up
network.yml
{
"...
0
votes
0
answers
151
views
Firewall rule windows CE ip port range
I would like to create a rule to allow a port range through firewall in windows CE.
I want to allow these addresses: 10.10.10.1-10.10.10.254
I tried to make an IP rule with IP:10.10.10.1-254 and IP:...
0
votes
0
answers
281
views
Check if a string is a valid IPv4 subnet address with optional mask in CPP
I am trying to write a function in cpp that checks if a given string is a valid IP subnet with mask or not. Examples of valid input are "20.0.0.0/32", "20.0.0.0/2", etc.
I have ...
0
votes
1
answer
117
views
using two different IPv4 with Docker (using venet0)
I'm running an Ubuntu server VPS with Docker image containers,
which provides me 2 external IPv4 addresses within the interface venet0.
venet0 has got 2 sub v-interfaces: venet0:0 and venet0:1 (each ...
-1
votes
1
answer
179
views
Why are 6to4 IPv6 addresses 112-Bits in length?
I was reading about 6to4 and I'm pretty confused about how the addresing works.
If you are converting an IPv4 to IPv6 using 6to4 first group will be 2002
The next groups are determined by the IPv4 ...