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

Finding local machine IP address without false positives

Using Java I tried to find my PCs local IP address. However, the result hasn't been correct. To be specific, I need the Wireless LAN Adapter WiFi IPv4 address from the ipconfig command. I looked at many different questions such as this excellent…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
2
votes
1 answer

Why order of ip_hl and ip_v changes by system byteorder

Why order of ip_hl and ip_v changes by system byteorder? I have to care about byteorder when the binary string is lager than 1 byte. However, the ip_hl and ip_v are in a byte, so I think I need not to care about byteorder of ip_hl and ip_v. struct…
q2ven
  • 187
  • 9
2
votes
1 answer

Nginx Gunicorn one ip multiple django sites in folders

thanks for reading my question. I'm trying to serve multiples Django sites on their own folders in one server without domain (only IP address) using Gunicorn and Nginx. Something like that: 20.20.20.20/demos/myapp1/ --> Django…
Sommer
  • 1,328
  • 2
  • 10
  • 20
2
votes
2 answers

Groovy Socket Programming and IP-Address

I want to write a small groovy script. This is my script, which is working: s = new Socket("localhost", 1234); s << "RUN" s.close() But I don't want to use the hostname (here it is 'localhost'), I want to use the IP-Adress, but if I write the…
LStrike
  • 1,598
  • 4
  • 26
  • 58
2
votes
2 answers

Why does UDP exist? Whats wrong with letting the user send raw IP packets?

Of course we need to specify source port and destination port but besides that, why do we need UDP when we could just send IP packets with the same payload? I'm not asking why I can't do it. I want to know what the need for the UDP protocol was.
gotthecodes
  • 273
  • 3
  • 12
2
votes
1 answer

Alias IP Ranges (Google Cloud)

Google documentation says that If you have multiple services running on a VM, you may want to assign each one a different internal IP address. You can do this with Alias IP ranges. I'm new to networking and I have followed the steps on the below…
Pasta
  • 53
  • 5
2
votes
2 answers

Why should we use IP spoofing when performance testing?

Could anyone please tell me what is the use of IP spoofing in terms of Performance Testing?
JMeter_User
  • 203
  • 3
  • 17
2
votes
5 answers

Getting Users Real IP address using PHP

I want to get the real IP address from users going on my site even if they use a proxy website like hidemyass.com This is the code I have and thought it worked but I tested it and it doesn't
Derrick
  • 69
  • 2
  • 4
2
votes
0 answers

How to check for suspicious logins?

So to avoid this question being too broad, I'm going to give the approaches/background used in my exact case, but feel free to provide general approaches to solve this problem as it's still helpful. Purpose It may be a bit overkill, but large tech…
Luke Brown
  • 1,854
  • 2
  • 28
  • 49
2
votes
1 answer

How can I forward a regional IP to a global forwarding IP?

Tonight, my client is going to be on a high-profile television show to pitch his business. I created their API and had it running on a small server on Google Cloud Platform with a static IP on the instance since that was all that we needed. Now I am…
2
votes
2 answers

C++ Linux getpeername IP family

In my Linux C++ application I'm using getpeername in order to get the peer IP. my problem is: when I enable the IPv6 on my machine the IP I got from the peer is with family IF_INET6 although it is IPv4. code: int GetSockPeerIP( int sock) { …
gln
  • 1,011
  • 5
  • 31
  • 61
2
votes
2 answers

how to get client ip address and port in php?

How to get client ip address and port in php ? i need to implement this to with when visitors come with IP and PORT ? $linebyLine = date('Y-m-d H:i:s') . " - $_SERVER[HTTP_CF_CONNECTING_IP]"; file_put_contents('visitors.log', $linebyLine .…
2
votes
1 answer

How can I modify my IP address on my localhost in MAMP?

Developing a plugin for WordPress locally I'm wanting to implement Akismet in form validation but I'm required an IP address with the submission and when I run: function check_ip_address() { if (isset($_SERVER['REMOTE_ADDR'])) : …
DᴀʀᴛʜVᴀᴅᴇʀ
  • 7,681
  • 17
  • 73
  • 127
2
votes
2 answers

php check if users ip address is blacklisted and block it from my application

I want write a php function that takes the user's ip address, checks it against known blacklists and redirects users from blacklisted ip addresses to a default "Access Forbidden" page. I only want to allow access to my home page to users from IP…
buckibooster
  • 33
  • 1
  • 6
2
votes
3 answers

inet_pton() function where is the binary?

I want to convert IP addresses to binary in order to store them in MySQL DB. Online search says this is the most efficient way to store addresses, because ipv4 fits in 4 bytes and ipv6 in 16 bytes (What is the ideal datatype to store IP address in a…
user8415905
1 2 3
99
100