An Internet Protocol address (IP address) is a numerical label assigned to each device in a computer network that uses the Internet Protocol for communication. This is a general tag that covers both IPv4 (like 172.168.100.1) and the newer IPv6 (like 2012:da8:0:1234:7:577:8:2). If you specifically mean any of these, use IPv4 or IPv6 tags.
Questions tagged [ip-address]
3875 questions
1
vote
1 answer
Frontend and backend servers (hosted on separate aws instances) can't communicate
My two ec2 instances are on the same subnet and I have configured the security group such that they can communicate with each other (pinging each others private ip adresses and connecting via telnet).
The frontend instance is hosting an angular app…

ViktorSrbinoski
- 33
- 3
1
vote
1 answer
How do I write a function that blocks or firewalls off traffic to a website that has multiple IP addresses in Windows?
The Question:
I want to write a function that has the following pseudocode signature:
/**
* Blocks all traffic to the given website.
*
* @param {String} domain The domain name of the site to block
*/
function blockSite (domain) {
// TODO
}
I…

Josh Desmond
- 640
- 2
- 10
- 19
1
vote
1 answer
Reorder Octates in an IPAddressees / Java
I have ip address example "27.96.168.92" and would like to reorder the each Octates in the ip address. so the output should be "92.168.96.27".
I can achieve this with string split functionality.
Is there any way to achieve this without split…

Guru
- 29
- 8
1
vote
1 answer
I'm getting the same ip address from different computers in same network
I'm trying to get the ip address of the client so that they only use one account per device.
However, when I use the following code, I found that the same ip address returned from the computers in the same network.
function get_client_ip() {
…

Young Jun Choi
- 119
- 8
1
vote
0 answers
How to connect with wifi network using IP Address in iOS?
First of all i will explain what i want to achieve. I have a WIFI Bridge. Now right now I'm connected with that bridge via iPhone device. I can see the name of wifi bridge by going into setting and select wifi.
Now from here I want to get connect…

Sourav Mishra
- 501
- 4
- 21
1
vote
1 answer
Apache: IP addresses vs users
Suppose you wanna analyze your access log files in order to check users activities. One common way is to assume that a same IP address corresponds to a same user.
However, several internet providers use CGNAT. Which, briefly, allows multiple end…

Mark Messa
- 440
- 4
- 22
1
vote
1 answer
Convert a string (without separators) into IPV6 address representation
I'm trying to get the local IPV6 address by reading /proc/net/if_inet6. But the address there is without any colons like: 000000000000000000000abc00070def.
So I'm adding colons (:) at multiple places like this:
str6 =…

RatDon
- 3,403
- 8
- 43
- 85
1
vote
1 answer
Insert user IP Address into MySql table using Prepared Statement in java
I need to insert user IP Address into MySql table using PreparedStatement. How can I do it?
I tried with following code in Servlet.
InetAddress ipaddress;
try {
ipaddress = InetAddress.getLocalHost();
} catch (UnknownHostException e) {
…

Tom
- 761
- 7
- 22
- 41
1
vote
0 answers
Physical MAC address in Linux
I searched google but couldn't find a valid solution.
I have a system where there are some physical MAC addresses and some MACs(~30) created by docker.
For my need, I need only Physical MACs.
So far I have come up with this solution:
ls -l…

Dinesh Gowda
- 1,044
- 3
- 13
- 29
1
vote
1 answer
Device IP address returned from Android app different from the phone
The mobile IP address returned from the Android app is different from that shown in the settings of the phone.
I tried to use the following sample code to read the IP assigned from the mobile network to an Android phone (running Android 7) connected…

Mlui
- 139
- 1
- 3
1
vote
1 answer
If a server calls an API, what IP will the API detect?
Consider the case where there exists a simple client-server web application where the client sends requests to the server. If the server sends a request to an external API, what IP and header values will be detected by the API? The ones of the…

anonuser1
- 347
- 1
- 7
- 17
1
vote
2 answers
How to implement instantiation of TcpClient, IPEndPoint , IPAddress objects instantiating for both cases IPv4 and IPv6 address when passed As Strings
For my .NET C# application, we have modules that are need to communicate via the TCP/IP protocol.
I decided to use Microsoft's System.Net.Sockets API
The modules that are represented by the "TcpListener" class could be either be
-IPv4 address…

crazyTech
- 1,379
- 3
- 32
- 67
1
vote
1 answer
Display IP address on page with HTML
I am just starting HTML so the mistake I am currently making is probably something really obvious. I found this code that should display the user's IP address on the page, but it doesn't work. Why is this?
Palpable…

Palpable Coral
- 105
- 1
- 2
- 12
1
vote
1 answer
Scrape different URL's with different user agents and IP Addresses
I have a program that needs to scrape several different urls using scrapy and I need it to use the same user agent and IP address for each url. So if I am scraping like 50 urls I need each url to have one unique user agent and ip address that are…

Tim
- 191
- 2
- 28
1
vote
2 answers
PHP is always returning the same IP
I have been using the following PHP code to record IPs:
getenv('HTTP_CLIENT_IP') ?: getenv('HTTP_X_FORWARDED_FOR') ?: getenv('REMOTE_ADDR')
It had been working fine. But starting this May, I noticed that all recorded IPs are 74.220.219.56. I also…

Ian Y.
- 2,293
- 6
- 39
- 55