Skip to main content

All Questions

Tagged with
1 vote
0 answers
67 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(): ...
Ripped_Asssasin's user avatar
0 votes
1 answer
64 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 ...
Razak's user avatar
  • 1
-1 votes
1 answer
231 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 ...
NiRvanA's user avatar
  • 125
0 votes
2 answers
402 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 ...
user142389358902's user avatar
1 vote
3 answers
649 views

How can I get a string representation of an IPv4-mapped IPv6 that does not use a dotted quad?

Consider, for example, this IPv4-mapped IPv6 address: ::ffff:7f7f:7f7f. When submitting http://[::ffff:7f7f:7f7f] in the address bar of all browsers I've tested, the format is retained: However, the ...
jub0bs's user avatar
  • 64.5k
0 votes
0 answers
495 views

How to split IPv6 range into specific sizes?

I'm trying to map an IPv4 CIDR range onto its IPv6 equivalent, for use in an AWS WAF Classic rule. AWS WAF Classic only allows IPv6 address ranges: /24, /32, /48, /56, /64, and /128. Given the IP ...
Wintermute's user avatar
  • 3,005
1 vote
2 answers
1k views

Check if IPV4 and IPV6 address might be the same

Imagine I have 2 IP addresses, one in IPV4 format and the other in IPV6 format. Is there a way to check if they are possibly the same address? The comparison function would return: True: in case they ...
pedromnasc's user avatar
0 votes
1 answer
253 views

Website spying my address using WebRTC - what can they see?

Website I'm using connects from javascript to external WebRTC server to get information about me. They are getting response like this and sending selected information to their server. ...
George Mono's user avatar
1 vote
5 answers
5k views

I want a regex support for characters that uses IP Address with Subnet

I have a regex ^[a-zA-Z0-9.*?]+$ that supports IP addresses like 31.202.216.280 how can I modify the given regex in a way where I could support subnets with an IP address like so 31.202.216.280/38
misbha afreen's user avatar
0 votes
1 answer
53 views

If I want to set aside range of addresses to be assigned to servers

I am assigning the DHCP IPv4 addresses and I would like to set aside 5 addresses for future servers, will that mean that I have to have the end IP address as 192.168.1.249? screenchot of the range I ...
AAA's user avatar
  • 19
35 votes
4 answers
3k views

How can I verify that a string is a valid IPv4 or IPv6 address in batch?

I need to verify if a string is a valid IPv4 or IPv6 address in a Batch script, but apparently Batch doesn't have an easy way to parse an IP address. How can I do this in Batch without using external ...
ThePirate42's user avatar
0 votes
1 answer
84 views

Using sed to convert IP address to company-standard DNS name?

I've got a COTS product that requires we set a certain configuration property with a DNS name, rather than an IP address. Fortunately, our company standardized what the DNS names for that class of ...
Shadowman's user avatar
  • 11.8k
0 votes
1 answer
351 views

Calling In Computers IP Address

I'm trying to find a way to have Python determine what my computers IP address is and could use a hand with a weird result. A couple of quick facts, I'm using Windows 10 with the Linux Subsystem (the ...
NoVa's user avatar
  • 357
1 vote
0 answers
205 views

How to read network interface static IP in Java when the interface is down

On my windows system there are 2 NIC's, each configured to different static IPs (Eg: IP_1=170.10.120.1 and IP_2=10.20.30.1) and using the below Java Code I am able to print both the interface IPs to ...
Arun kumar R's user avatar
0 votes
1 answer
825 views

RTCPeerConnection candidates doesn't have a valid IPV4 address instead it has some .local address in it

candidate:4031277258 1 udp 2113937151 fc10cb5a-f63b-4e15-81b5-3b8291facf8f.local 53215 typ host generation 0 network-cost 999 Above you can see the sample of the candidate generated fc10cb5a-f63b-...
Gaja Priya's user avatar

15 30 50 per page
1
2 3 4 5 6