Most voted "ip" questions
The generic IP address is an identification of a device (computer, printer, etc.) on a local or public network. Each computer on the Internet has a unique IP (Internet Protocol), which is the medium in which machines use to communicate on the Internet.
Learn more…90 questions
Sort by count of
-
52
votes1
answer1763
viewsCan the IP address be forged?
When a client connects to my server, can I trust that the IP address I have access to (every/framework/etc language used in web applications exposes the client’s IP in some way) is really that…
-
26
votes3
answers8812
viewsHow to determine the user’s approximate location by IP?
When I use search engines for certain searches, mainly related to maps or commercial establishments, these systems usually serve me results relevant to my geographical location. When I’m on the PC,…
ipasked 10 years, 1 month ago Oralista de Sistemas 23,115 -
11
votes2
answers44856
viewsHow to get ip from a user using php?
I’m using the function getenv("REMOTE_ADDR"), to catch the ip users who enter a particular page of my site and then I made a if to redirect that ip which is not equal to the variable of ip allowed.…
-
8
votes3
answers20664
viewsHow to get user IP via Javascript?
I have three commands that together return the user’s IP. I wanted to turn them into a single command with the command return. Kind of: return userip; How do I do it? Follow the code: <html>…
-
6
votes3
answers3015
views -
5
votes1
answer1469
viewsHow to make a site multilingual and identify the country of origin?
I am developing a site in Javaee and would like it to be multilingual (at least English, Portuguese and Spanish). But I would like to know how large websites, such as Facebook, for example, do to…
-
5
votes2
answers1905
viewsHow do I get the browser user’s language?
I have a website in 3 languages, EN, EN and ES. But on some distinct machines when accessing the site by the browser is directing to page on English. This happens because of the code below which I…
-
5
votes1
answer1136
viewsHow to block a range of Ips with php?
I have a function in php, but I wouldn’t like it to be run by people from a certain country, as I do for the php script to block a range of Ips? Example, block the US IP range. You need to be able…
-
4
votes3
answers4238
viewsHow to find the internal IP?
I’m looking for a solution to know the ip engine. The idea is that through a website, when the user accesses it, know which the ip inside of him, and then looking for everyone else ip's, and find…
-
4
votes3
answers16370
viewsBat to enable and disable proxy
I need a bat to activate and disable proxy already with the ips set someone can help me ? To activate use the following command: REG ADD…
-
4
votes1
answer102
viewsAccept terms of use
What should be captured from the user when he or she clicks to accept the terms of use of my system, app or website? Usually I hear people saying that should be captured the IP and Date Time, more…
ipasked 8 years, 10 months ago Jhonatan Simões 990 -
4
votes1
answer1665
viewsHow to get the HOST IP through the PYTHON domain?
In PHP, to get the ip of a given domain, I usually use the function gethostbyname. PHP example: gethostbyname('www.google.com'); //201.17.165.210 And in Python? How can I do this?…
-
4
votes4
answers1225
viewsHow to block website and leave free only for some ips?
I would like to know how I can block my site that is under maintenance and leave free access to two ips, I’m doing this way , but it only leaves free for one. I want you to be free for both of you .…
-
4
votes1
answer630
viewsWhy does the decrease of the subnet mask fold the size of the original network?
Reading about IP protocol and network addressing, I don’t understand why the "diminishing" the size of the subnet mask in 1 bit, generates a "augmentation" network size. I understood the reason for…
-
3
votes1
answer5312
viewsC# Socket Refusing Public Connection
I am using the server and client example below to make a TCP connection via internet and in the client returns the following message: Additional information: No connection could be made because the…
-
3
votes1
answer883
viewsHow to make a page to know Ipv6?
To know Ipv4 I can use the code on a page: <?php echo $_SERVER["REMOTE_ADDR"]; ?> But I can not find anything similar to do the same with Ipv6, what I get a lot is already sites with…
-
3
votes3
answers2982
viewsFind out if a website is on or off
Is there any PHP function to find out if an IP address (meaning website) is in the air or not? I found this function on the WEB but she did not satisfy me.... it takes too long to load. function…
-
3
votes1
answer1361
viewsView video from IP Camera
Gentlemen, I’m no expert in PHP, I’m starting now, and would like a direction on how to display the video of my IP Camera - P2P snapshot.php <?php…
-
3
votes1
answer216
viewsDNS update Cpanel
I’m trying to use a script to update the IP of our server, to be able to access externally since we use dynamic IP. The script what use is [that][1]: But it returns me the following error : <?php…
-
3
votes1
answer102
viewsIs it possible to get user location information through your ip?
Is there any possibility using the schedule of getting locations from a supposed visitor to your website? Example: "So-and-so" with ip: 192.168.254.1 visited my website: www.meusite.com.br Through…
-
3
votes1
answer1708
viewsuser location by IP
I would like to know a php library that would help me with the location of the user access by IP, well I found one on the internet and even worked well (did not show exactly the location) only a 50…
-
3
votes3
answers1157
viewsRegex check IP
I am implementing a regex to accept IP address, for this I am using a Mask in the textEdit component of Devexpress, however when I leave the field blank or with only one filled part locks all other…
-
3
votes1
answer263
viewsWhat is the logical port of the user in PHP?
What is "logical port"? And how to detect the logic port of the user using PHP? Would that be? $porta = $_SERVER['REMOTE_PORT']; Source:…
-
2
votes1
answer2690
viewsHow do I save the IP of the person who visited my site to a text file?
I’m using the code below, but only writes "::1" to the file. <?php $arquivo = "ips.txt"; $file = fopen($arquivo,"a"); $string = $_SERVER['REMOTE_ADDR'] . "\n"; $fp = fwrite($file,$string);…
-
2
votes2
answers281
viewsSave visitor IP in text file, but how not to save again if already there and how to read?
I used the answer to this question to save the IP in a text file: How to save the IP of those who visited my site in a text file? The thing is, I want to create a button like "enjoy" so that…
-
2
votes1
answer903
viewsHow to validate the IP of a list Emails to know if they are real or fake and can receive messages?
I know there are services that do this, but I would like to know how they do this kind of test, to find out if the email is really valid, not only through a PHP filter, for example: function…
-
2
votes1
answer562
viewsCalculation of Shannon entropy in network traffic (saved in CAP file) using Python
I have a dump file (CAP format) of a network traffic capture made with Ubuntu’s tcp dump. Until a certain time, it is a traffic free of attacks. Then, begin a series of attacks of type TCP SYN…
-
2
votes2
answers359
viewsCapture visitor IP on a Wordpress site in.txt file
I am trying to register the IP, Referrer and date of connection of all visitors to my Wordpress site in a.txt file, but I am not being successful. I tried with the Plugin 'Webrtc IP Grabber &…
-
2
votes1
answer299
viewsWhy is it not good to use this function and how do I identify the user’s IP then?
public function get_client_ip() { $ipaddress = ''; if (isset($_SERVER['HTTP_CLIENT_IP'])) $ipaddress = $_SERVER['HTTP_CLIENT_IP']; else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) $ipaddress =…
-
2
votes1
answer505
viewsIPV4 only with PHP with ipv4/ipv6 link
I’ve always used $_SERVER['REMOTE_ADDR'] to obtain the IP user/visitor on some systems. But I started using a FIXED IP at work, which is IPV4, but when I will see the record I agreed with IPV6. But…
-
2
votes2
answers1148
viewsBlock user access with foreign IP’s
It is possible to restrict access to a particular website or Web system, so that only IP’s in Brazil can access it? I have a mini-system in PHP, and to further increase its security, I would like to…
-
2
votes2
answers142
viewsDocker: Problem using container IP
Hello, All right? Before long I learned to use Docker and decided to practice the use of mysql and adminer, with the following Docker-Compose I already had the containers standing. version: '3.5'…
-
1
votes1
answer302
viewsHow do I generate an automatic IP (DHCP) in VB.NET
Good afternoon, I would like to know how I can be generating an automatic IP (DHCP) in VB.NET and if you need to generate Mascara, Gateway and automatic DNS as well? Or in this case to use Automatic…
-
1
votes0
answers327
viewsconnection via socket server android, client c#, server within another network
I was able to do the communication C# -> Android without problems, but when Android connects to a local network, I do not know how to make this connection via ip, since it acquires the local IP.…
-
1
votes3
answers1389
viewsHow to differentiate device type from IP?
How to know what type of device is using an IP? I wonder if there is any way to validate whether an IP belongs to a computer, a mobile device, etc. This is to differentiate device types from IP. I’m…
-
1
votes1
answer2784
viewsDomain pointing to a port IP?
In cPanel with a Record Type A I can only specify the IP to which the domain should be routed, this will by default redirect to port 80, but if the destination settings are running on a port other…
-
1
votes2
answers736
viewsFast website when accessed by IP, but super slow via Domain Name
I’m having a problem that when accessing my VPS server using IP, access is immediate but when access using HTTP, the page takes up to 10 seconds to open, I did some tests on my local machine and…
-
1
votes1
answer3076
viewsHow to get the local IP address using PHP?
I have an application in which I want, related test, to get the IP address location of my PC. I did a brief search and saw that it is possible to rescue it using the following code: $ip =…
-
1
votes0
answers73
viewsApplication in c# that collects data from a computer network
Good evening, I am developing an application in c# that collects data from several computers with logically different Ips, this access is being done at the same time and the information is handled…
-
1
votes1
answer52
viewsCompare array character
I’m developing an IP calculator in PHP. I have a mask array in binary, with 4 positions and at each position has 8 characters, I want to compare each character of each position to know if the bit is…
-
1
votes1
answer50
viewsHelp with function organization
I’m developing an IP calculator, and now I need to find the first valid IP of the original typed network. I separated my code into functions, which I think instead of helping, it got in the way. My…
-
1
votes2
answers795
viewsRead files . CAP efficiently with Python
I have some. CAP files originated from catching packages with tcpdump. When trying to open with wireshark, the machine gets very slow, because I imagine he tries to load everything to RAM. I would…
-
1
votes1
answer797
viewsHow to redeem external IP address on Android?
The address IPV4 local is not something very complex to rescue, can do this using the class NetworkInterface. But beyond the site, there is also the External IP, in which I realized that some people…
-
1
votes1
answer1968
viewsHow to host a Windows server?
The computer where I want to host the site developed in Alavel is in another network. I put the whole site in the server and I turned the command php artisan serve --host MEUIP --port MEUPORTO When…
-
1
votes1
answer90
viewsHow to view DNS domain only with IP number?
when we ping a URL address type www.google.com the prompt returns us the IP 172.217.30.4, now I would like to know how to get the URL address only with the IP number through PHP, preferably. Thanks…
-
1
votes0
answers31
viewsWhat is "scoped address zone" in Ipv6?
I was looking at the library of net golang, until I found the Ipaddr guy which is exactly: type IPAddr struct { IP IP Zone string // IPv6 scoped addressing zone } What caught my attention is this…
-
1
votes1
answer1749
viewsCapture IP and local machine name
I need to get the ip and name of the client’s local machine in case the user who will be accessing my system. My system is hosted on the network system and database. The commands I have used so far…
-
1
votes1
answer350
viewsHow to access a local virtualhost from another device?
I’m needing to test a local application that runs on Apache2 on my mobile and other devices here. I usually configure my Apache2 on Linux as follows: In the /etc/hosts, I place the desired domain:…
-
1
votes3
answers95
viewsHow can I copy content from a div to a hiddenfield?
I have a div that displays the user’s IP, in which this address is picked up by Javascript. However, I need to use the IP in Code-Behind. The idea would be to copy the contents of the div to a…
-
1
votes1
answer119
viewsGet public site user IP
Good evening, everyone I made a web application with ASPNET and C#, and I need to get the user’s IP when he accesses the system. I researched if I found several ways, but I always have this…