Skip to main content

All Questions

Tagged with
0 votes
1 answer
871 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 ...
Pratik Kumar's user avatar
0 votes
0 answers
79 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="...
eric steel'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
5 votes
2 answers
18k views

How can we Find Ip Address using Javascript code?

const peerConnection = new RTCPeerConnection({ iceServers: [] }); peerConnection.createDataChannel(''); peerConnection.createOffer() .then((offer) => peerConnection....
Gopal k .Dwivedi's user avatar
0 votes
1 answer
170 views

compare list of IP ranges and short it to uniq ranges

I have a list of IP ranges (taken from CIDR with script giving start address and end address) and I'm trying to get unique ranges (currently doing it by hand) 118.184.192.0-118.184.223.255 118.187.0.0-...
adrian3k's user avatar
0 votes
0 answers
206 views

How do i redirect different site visitors based on ip address?

I would like to redirect every user that visited my site to different url each. I'm limiting it to ten sites only though. For example; When visitor 1 visit my website; www.youarelovely.com it would ...
Hither Joe's user avatar
0 votes
0 answers
182 views

I want to know how can i see my react project in my mobile using the IP ADDRESS given in the terminal

I just started learning reactjs and in the tutorial, I saw my teacher showing the react project on his phone, I tried to do the same, Local: http://localhost:3001 On Your ...
Ankit's user avatar
  • 1,362
-3 votes
2 answers
49 views

RegEx IP Adress bug [closed]

in my react app I have a Input that validates if the string is an IPV4 Address or not. This is my RegEx: ^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4]...
David Küng's user avatar
1 vote
0 answers
388 views

How to detect if a user is using a local ip, vpn or a public ip?

I am new to MVC. I am trying to create a landing page where the users may use it to open specific websites. I want to detect whether the user is accessing it through a local iPad or through a VPN or ...
Makii's user avatar
  • 11
0 votes
0 answers
142 views

How to receive the users data from ipregistry api

I'm using https://ipregistry.co api , its an ip address api that collects the ip's from users who entered a website. Now I have already integrated it into my website, and its working properly and ...
Pro Eng's user avatar
0 votes
1 answer
182 views

Any way to generate a unique and predictable id of the local computer in JavaScript/Angular?

We have several computers running Microsoft Edge (no option to change the browser). We have a central web server with pages created for each individual computer. I want users of these computers to be ...
Wolfgang Jagomir's user avatar
0 votes
0 answers
552 views

jQuery checking if IP address are within the range

I want to be able to check that two IP address are within the range. So if a user enter something like 10.10.10.0 and 10.10.10.10 then it will pass the validation and enter that address into the ...
Jefferson's user avatar
2 votes
1 answer
541 views

Datatables IP-address sorting "full example"

I am very new to html/javascript and I am struggling to have this fixed, would you please help!! I am trying to use DataTables jQuery plugin for sorting an IP-address column. I found followed many ...
HMS's user avatar
  • 73
1 vote
1 answer
671 views

(Alternate Solution) Validate IPV4 and IPV6 with wildcard (*) characters using Regex

I want to validate IP Address with wildcard characters (*) using regex. I came up with the following regex for IPV4 and IPV6 but these don't validate all use cases. IPV4 ^((([0-9]{1,2})|(1[0-9]{2,2})|...
raven's user avatar
  • 43
0 votes
1 answer
1k views

Why my IP Address shows if I use alert() in Javascript? [duplicate]

Here's the screenshot and the code. And how can I change it to something like "This page says" then alert(). <button id="hover-me"> Move the cursor over here </button&...
user avatar

15 30 50 per page
1
2 3 4 5
9