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
2 answers

How to normalise IPv6 address in Java?

Given a string which contains an IPv6 address in one of it's formats, is there a Java standart way to normalise it in a way that the same normalised value for different formats of the same address? i.e normalise("2001:db8:0:0:1:0:0:1") =…
iddqd
  • 1,225
  • 2
  • 16
  • 34
2
votes
1 answer

getting the right IP-address from user in flask

I saw on this thread on StackOverflow: How to find location with IP address in Python? The answer worked for me, but so far I have only tested it on localhost, and I want to make sure, that the IP-address is actually the IP from the user, and not…
Kristoffer Tølbøll
  • 3,157
  • 5
  • 34
  • 69
2
votes
7 answers

How to get IP address of device in Unity 2018+?

How to get IP address on C# in program which developing for android device in Unity 2018.2+? Seems like Network.player.ipAddress is deprecated right now, so I'm looking for a new way.
Orkan
  • 71
  • 1
  • 2
  • 9
2
votes
1 answer

Airflow EC2-Instance socket.getfqdn() Bug

I'm using Airflow version 1.9 and there is a bug in their software that you can read about here on my previous Stackoverflow post, as well as here on another one of my Stackoverflow posts, and here on Airflow's Github where the bug is reported and…
Kyle Bridenstine
  • 6,055
  • 11
  • 62
  • 100
2
votes
1 answer

How to get ipv6 address in flask?

I'm tring to get the client's ipv6 (if present) or ipv4 address whenever my api end point is hit. Here's the code: from flask import request from flask import jsonify @app.route("/ip", methods=["GET"]) def ip(): return jsonify({'ip':…
Rahul
  • 3,208
  • 8
  • 38
  • 68
2
votes
1 answer

Real IP behind Apache Load Balancer (Proxy) Server

I need to forward the real ip of the visitor to Apache Load Balancer. I have done it on Nginx successfully by just adding following two lines: proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For …
skalkanci
  • 61
  • 1
  • 7
2
votes
1 answer

How to check if my raspberry pi's ip is static?

I found a linux guide, but my interfaces file only has comments in it. Where do I find line telling me if its static or dynamic? Execute the following command from a terminal: cat /etc/network/interfaces If your internal IP address is set as…
Lukali
  • 343
  • 1
  • 4
  • 15
2
votes
1 answer

kernel crash in handling network

an error happens when lots of udp data transmission in my DSL router. my enviroment: pc1 ----(ethernet)--->DSLAM--(PPPoEoA)-->DSL router--(ethernet)--pc2, pc1 send udp data to pc2, udp data size:1460 bytes. speed: 20Mbps, cpu: mips, ram: 16M DSL…
Eric
  • 446
  • 8
  • 11
2
votes
1 answer

Getting IP Address of user browsing the website

I am trying to get the IP address of the user who is browsing the website, might be through mobile phones or PC. I have tried using a set of code, but what I get back is ::1, may I know if this is wrong or it's meant to be like that? private string…
Arane
  • 323
  • 4
  • 19
2
votes
1 answer

Connect python with h2o that runs in docker, but ipv4 for h2o changes

I'm new to docker and I'm trying to run h2o in docker and then use python to connect to it. I have folder with: model-generator folder in which I have the python script and Dockerfile to build an image h2o-start folder in which I have h2o.jar…
Milan Panic
  • 473
  • 1
  • 9
  • 30
2
votes
1 answer

Replace each host route with ipset+mark and one route

I need to route large number of IP via specific connection. I want to use IPSET for this purpouse instead of adding one route per each IP. I am trying to run following example on machine1: ipset create TEST hash:net ipset add TEST 8.8.8.8 ipset test…
crashtua
  • 472
  • 2
  • 14
2
votes
2 answers

How can I get my user agent header in a simple way using requests in python 2.7?

This answer told me about http://ip.42.pl/raw, which provides the (to my knowledge) simplest way of getting my own IP using requests in python 2.7. It just displays one sting with the desired information and nothing else. Are there any websites that…
sudonym
  • 3,788
  • 4
  • 36
  • 61
2
votes
2 answers

IP address in LAN

(1) What is my and others real IP address on same lan? Can we still have a unique IP despite the fact that we share the same router/LAN? and how does the IPs are assigned? Thanks!
2
votes
2 answers

PHP preg_split IPs in a string

I am trying to use preg_split in PHP to break up the following string and return me the 2 ip addresses: $membersStr = "members { 167.69.27.151:4449 {} 167.69.27.153:4449 {} 167.69.27.154:4449 { session user disabled } 167.67.27.156:4449 }"; My code…
Jim
  • 613
  • 6
  • 16
  • 25
2
votes
1 answer

What is the difference between `ether_header` and `ethhdr`?

I'm currently trying to parse the packets from the raw buffer. I find there seems to be two structures for ethernet header: ether_header and ethhdr. I'm kind of confused what's the difference and relationship for them? Could I use them…
zzy
  • 751
  • 1
  • 13
  • 25