Questions tagged [ip-address]

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.

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…
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() { …
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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/ip-address" class="post-tag grid--cell" title="show questions tagged 'ip-address'" rel="tag">ip-address</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 27 '19 at 16:48">asked May 27 '19 at 16:48</time> <a href="../../users/11525223/palpable-coral" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/11525223.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Palpable Coral" /> </a> <div class="s-user-card--info"> <a href="../../users/11525223/palpable-coral" class="s-user-card--link">Palpable Coral</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">105</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badge">2</li> <li class="s-award-bling s-award-bling__bronze" title="12 bronze badge">12</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-56262899"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/56262899/scrape-different-url-s-with-different-user-agents-and-ip-addresses" class="question-hyperlink">Scrape different URL's with different user agents and IP Addresses</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/python" class="post-tag grid--cell" title="show questions tagged 'python'" rel="tag">python</a> <a href="../../questions/tagged/scrapy" class="post-tag grid--cell" title="show questions tagged 'scrapy'" rel="tag">scrapy</a> <a href="../../questions/tagged/ip-address" class="post-tag grid--cell" title="show questions tagged 'ip-address'" rel="tag">ip-address</a> <a href="../../questions/tagged/user-agent" class="post-tag grid--cell" title="show questions tagged 'user-agent'" rel="tag">user-agent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 22 '19 at 18:27">asked May 22 '19 at 18:27</time> <a href="../../users/7242883/tim" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/7242883.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Tim" /> </a> <div class="s-user-card--info"> <a href="../../users/7242883/tim" class="s-user-card--link">Tim</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">191</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badges">2</li> <li class="s-award-bling s-award-bling__bronze" title="28 bronze badges">28</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-56179710"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/56179710/php-is-always-returning-the-same-ip" class="question-hyperlink">PHP is always returning the same IP</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/ip-address" class="post-tag grid--cell" title="show questions tagged 'ip-address'" rel="tag">ip-address</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 17 '19 at 04:40">asked May 17 '19 at 04:40</time> <a href="../../users/1091014/ian-y" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1091014.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ian Y." /> </a> <div class="s-user-card--info"> <a href="../../users/1091014/ian-y" class="s-user-card--link">Ian Y.</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,293</li> <li class="s-award-bling s-award-bling__gold" title="6 gold badges">6</li> <li class="s-award-bling s-award-bling__silver" title="39 silver badges">39</li> <li class="s-award-bling s-award-bling__bronze" title="55 bronze badges">55</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/ip-address_page=96" rel="prev" title="Go to page 96">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/ip-address_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/ip-address_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/ip-address_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/ip-address_page=99" rel="" title="Go to page 99">99</a> <a class="s-pagination--item" href="../../questions/tagged/ip-address_page=100" rel="" title="Go to page 100">100</a> <a class="s-pagination--item" href="../../questions/tagged/ip-address_page=98" rel="next" title="Go to page 98"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>