Questions tagged [ip]

This tag is for questions related to the Internet Protocol. You may want to use the tag [ip-address] instead of or in conjunction with this tag. For questions about intellectual property, use [intellectual-property] instead.

The Internet Protocol is one of the fundamental protocols used for the Internet. There are two main versions: uses 32-bit addresses (often shown in dotted-decimal notation, e.g. 10.0.1.3) and uses 128-bit addresses. IP addresses have their own tag, , which is often seen with . Its companion protocol is the Transmission Control Protocol, , and the combination is often denoted TCP/IP.

This tag is also used infrequently to mean the C language structure related to IP addresses, the computational complexity class IP or instruction pointers. It should not be used to refer to intellectual property; that has its own tag, .

9300 questions
2
votes
1 answer

How can I make a CURL request to IP Address PHP?

I am trying to make a CURL request to an IP address, however it just fails and I have no idea why. This is my code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"127.0.0.1/script.php"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch,…
2
votes
1 answer

Is there a simple way to compare IPs in PHP?

On one hand I have an IP like 123.3.2.3 and I would like to compare it with an array of allowed IPs like: $allowedIps = ['123.*.*.*', '123.3.2.3', '123.3.2.3::1', '123.3.*.3'] In this case it should match all of the items. Is there a simple way to…
Raul Leaño Martinet
  • 2,035
  • 6
  • 28
  • 44
2
votes
1 answer

block requests using site's ip

Is it possible to block all requests that use the IP address rather than the domain name for a site on IIS? For example, i'd like to block https://104.100.100.2 but not https://somesite.com (which resides at the dummy ip of 104.100.100.2). I've…
TS12
  • 41
  • 3
2
votes
2 answers

Python - Best way to count IPs that fall under IP range

I have a python script that grabs all IP from the arp table and assign it to a variable. I have for loop that creates another two variables start_IP containing the first IP of a subnet and last_IP containing the last IP in that same subnet. For…
Neo
  • 47
  • 8
2
votes
1 answer

Node.JS and raw-socket doesn't seem to respect source IP

I'm testing Node.JS and raw-socket for sending out custom packets. It seems to work fine, however, it doesn't respect source IP. This is my example: var buffer = Buffer.alloc(65535); var buffer = Buffer.from([ 0x06, 0x27, 0xE2, 0xF1, 0xDD, 0x1D,…
Alfred Balle
  • 1,135
  • 4
  • 16
  • 32
2
votes
1 answer

testing ip geolocation services

we're using an ip service to tailor out website content to the location the member is browsing from. do you have any suggestions / recommendations for testing tools that would allow us to replicate this scenario of someone browsing our website from…
andrew
  • 1,260
  • 9
  • 14
2
votes
1 answer

How can I set a country limit in my proxy?

I do webscrapring with Scrapy, using Polipo as proxy, and Tor as network. I know my proxy makes rotating IP, but the IP location is most of the time out of my country. On the websites I scrape, it could have some blocking considering the location of…
AvyWam
  • 890
  • 8
  • 28
2
votes
3 answers

request.getRemoteAddr() return server ip

@RequestMapping(value = "/origin/test/", method = RequestMethod.GET, headers = "Accept=application/json") public String getTest(@Context HttpServletRequest request) { String Text = "Version - " + org.hibernate.Version.getVersionString(); …
K Rajitha
  • 306
  • 7
  • 24
2
votes
1 answer

Google API country detect PHP

How can I get country with Google API? I have seen Javascript version. But I need to get by PHP. How can I get this? I need most simple and fast way to get Country in PHP. What can you suggest?
Tigran Tokmajyan
  • 1,937
  • 7
  • 25
  • 36
2
votes
0 answers

only one IP is taking as one student. but not working on local network spring boot web app

i am building a MCQ module(online MCQ module) for students. so here i encountered a problem regarding that i have identified a one student as one device. simply thinkin a one student is having one device for the exam. but when it comes to a local…
2
votes
2 answers

How to determine my IP address on a split-tunnel VPN?

I would like to find my IP address that other machines on a corporate split-tunnel VPN see me as. Is there a way to determine that from terminal?
ion20
  • 637
  • 4
  • 9
  • 21
2
votes
1 answer

A question about the consistency of the TCP header and HTTP header

Suppose there is no proxy between the http client and the http server there is an IP address in the TCP header, and the value of the http host field can also be an IP address, can anyone think of a situation where these two IP addresses are…
PeopleMoutainPeopleSea
  • 1,492
  • 1
  • 15
  • 24
2
votes
2 answers

log IP with php

i found this script online: creating the entry works - however, the IP is not displayed. the…
Mat
  • 23
  • 2
2
votes
0 answers

Intl-tel-input code area set automatically without using geoIpLookup

I'm using the intl-tel-input module to have validation for the phone field of a form that will be filled by store employees in different countries. The validation works well, but I need to set the code area automatically once the store employees log…
chloe
  • 383
  • 1
  • 3
  • 15
2
votes
1 answer

Setting IE Proxy by C#

Hello i want to set IE proxy using a C# program as WebProxy class have get proxy method.But there is no method to set it!
user460195
  • 21
  • 1
  • 2