Questions tagged [ip]

Are you seeking answers about the Internet Protocol? Consider utilizing the [ip-address] tag alongside this one. If your inquiries pertain to intellectual property, switch gears and opt for the [intellectual-property] tag instead.

Retrieve the current user's local machine name on a wireless network using PHP

Attempting to obtain the user's machine name using: gethostbyaddr($_SERVER['REMOTE_ADDR']); However, only receiving the host name which is identical for all users in my wireless network. After conducting research online, some suggest it ...

Guide to utilizing an alternative server IP address using PHP and cURL

Is there a way to specify a particular IP address for cURL to use when making requests on my server with multiple assigned IPs? ...

Node.js TCP punching holes

I'm currently attempting to establish a TCP connection between two devices behind separate NATs using node.js. One obstacle I'm facing is determining how to specify the local port for this connection. Any insights or suggestions would be apprecia ...

Grouping IP addresses based on their corresponding domain names

I am currently working with an IP network that consists of a series of sequential IP addresses. My goal is to group ranges of IP addresses into separate entities and assign each IP within the range various properties such as time to live, nameservers, and ...

Obtaining the user's IP address using Vue.js

Just started venturing into the world of Vue.js and I'm looking to retrieve a user's IP address within Vue.js. Prior to this, I was using req.ip inside my API, but unfortunately it always returned the IP address of the Vue.js server instead. I ...

What is the best way to send a CURL request to an IP Address using PHP?

I've been attempting to send a CURL request to an IP address, but for some reason it keeps failing without any clear explanation. Here's the code I'm working with: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"127.0.0.1/script.php"); cu ...

What could be causing the issue of being unable to connect to the NodeJS express server from any network?

Imagine having a web server running on port 3001 with the IP address 23.512.531.56 (obviously not a real one) and then switching to another network, like your neighbor's. Now, when you try entering 23.512.531.56:3001 in Chrome, why doesn't the se ...

PHP - Building URLs on the Fly

I have a link to a live video stream available. http://xxx.xxx.xxx.xxx:xxx/live/stream.m3u8 In order to enhance security and privacy, I am looking to create a dynamic link that constantly changes. To achieve this, some suggestions include generating a un ...

Looking to retrieve country, state, city, and area based on inputting a pincode value using Node.js?

I'm currently working on a web project with nodeJs and ejs. I am looking for a solution that can automatically update the country, state, city, and area fields based on the input of a pin-code (zip-code). Are there any recommended packages in node js or ...

Can the mDNS string received through webRTC be decoded to retrieve a user's IP address?

After doing some thorough research, I came across this insightful response from a different Stack Overflow question. The problem at hand involves retrieving an mDNS string, which looks like this: abcd1234-1e1e-1e1e-1e1e-abcd1a2bc3de.local I have a genuin ...

Ways to obtain IP address using node.js

Is there a way to retrieve the IP address of my server using node.js? I require this information in order to connect to my server, but I am unsure of where to find this IP address. ...

Enabling communication between JavaScript and PHP and vice versa

I am currently working on developing a Firefox plug-in with the purpose of gathering all the domains from the links located on the current site and showcasing their respective IP addresses. In order to achieve this, I have written JavaScript code that incl ...

Comparing strings in PHP: determining country based on IP address and a set value

My PHP script successfully determines the country from an IP address, but I'm encountering a strange issue. Even though the variable $location is displaying as "United Kingdom" when I echo it, my comparison is returning "not uk" instead of "hello UK." I d ...

What steps should I follow to obtain the return value after invoking these functions?

I have a task that requires creating a nodejs script for two specific functions: Retrieve my public IP address. Update my public IP address on my freenom.com account for a registered domain. Currently, I have two separate scripts in place to accompl ...

Monitor the traffic on my website by implementing .htaccess restrictions

I am maintaining a website with restricted access to specific IP addresses listed in the .htaccess file. I am looking to implement a logging system that tracks unauthorized attempts to access the site. Is it feasible to record each attempt in a database? ...