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

TIdHTTP: Select outgoing IP for HTTP request?

I have a machine with several different static IPs. Is it possible to select the outgoing IP address for HTTP requests via TIdHTTP (Indy)?
vitaliy-zh
  • 185
  • 9
2
votes
1 answer

Change Bluetooth name to current IP address on Pi Zero

I need the bluetooth name on Pi to change to the current IP of the PI so i can ssh into it because Im constantly changing WIFI and my IP Address always changes. I have tried FING but sometimes im on a network with over 500 people so a scan takes way…
2
votes
1 answer

How to control access of AWS Elasticsearch Service and Kibana?

I have an AWS Elasticsearch instance with a Kibana link that I want to share with another person, so that they can access this data from their browser. How can I allow them access?
2
votes
0 answers

How can I retrieve user IP Address, City, Country upon sign up with Django?

I am wondering how I can get a user's location upon sign up using django. May I have an example in code doing this in a form? GeoIP likely does what I need but I am confused as to how to implement it. Here is my current forms.py: from django import…
Alex
  • 486
  • 1
  • 7
  • 19
2
votes
1 answer

How to decode an Address Resolution Packet (ARP)

What does this ARP packet mean, or even just what bytes correspond to which fields? 0000 FF FF FF FF FF FF 00 00 C0 93 19 00 08 06 00 01 0010 08 00 06 04 00 01 00 00 C0 93 19 00 C0 99 B9 64 0020 FF FF FF FF FF FF C0 99 B9 32 00 00 55 00 00…
farm ostrich
  • 5,881
  • 14
  • 55
  • 81
2
votes
0 answers

Why after netplan apply I got error: System has not been booted with systemd as init system (PID 1). Can't operate

I am trying to set up a static IP for my Linux Ubuntu 18.04. I found some recommendations to create file 01-netcfg.yaml in /etc/netplan/. I wrote there: network: version: 2 renderer: networkd ethernets: …
dablDev
  • 61
  • 4
2
votes
1 answer

Get IP from a file_get_contents request

I have two pages, one sending a file_get_contents request: $postdata = http_build_query( array('install' => 'true', 'url' => $_SERVER['SERVER_NAME'], 'key' => 'XXXXXXXXXXXX') ); $opts = array('http' => array( 'method' => 'POST', …
RANGER
  • 1,643
  • 2
  • 17
  • 31
2
votes
1 answer

two bytes swapped in packet received from Python raw socket

My Python program is receiving ICMP destination unreachable messages from a raw socket. The socket is created with the following code: socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_ICMP) ICMP destination unreachable messages include…
Brian Edwards
  • 311
  • 3
  • 5
2
votes
1 answer

How to block asia, russia and germany ips on a GCP firewall

we have a VM on GCP and we have every night people from differents countries trying to hack it, we have config evasive but they constantly change the ip and start again. we were adding manually one by one the ip that are show on the apache log on a…
Austral
  • 21
  • 2
2
votes
1 answer

Cannot connect to Postgresql running in docker with Host = localhost

I have Postgresql running in a Docker container with port 5432 is exposed. $ docker ps -a IMAGE STATUS PORTS NAMES postgres:9.6 Up 32 minutes (healthy) 0.0.0.0:5432->5432/tcp …
Hung Vi
  • 490
  • 4
  • 16
2
votes
1 answer

getnameinfo fails to perform a reverse DNS

Goal: return FQDN given the sockaddr I'm trying to use getnameinfo to perform a reverse DNS lookup and return the FQDN for example.com, however the code below fails to print the FQDN with error EAI_NONAME (8). Prior to running the code below, I open…
Unglued
  • 419
  • 6
  • 15
2
votes
2 answers

emulators connection using TCP

hy again! I'm trying to connect two emulators running as server and client on the same PC.The thing is that one of them is inside a virtual machine.What addresses should I use for each of the emulators in order to connect between them? I'm using a…
adrian
  • 4,574
  • 17
  • 68
  • 119
2
votes
1 answer

how to get ip address of client from socket

I want to print the ip address of the client connected to the server socket. I've seen many answers, but all gone wrong with me. Also please provide the right place to put the piece of code you're answering with Expected result = IP of client is . .…
2
votes
0 answers

How to identify Private IPs from a list of IP addresses?

List of Private IPs are noted below 10.0.0.0 – 10.255.255.255 172.16.0.0 – 172.31.255.255 192.168.0.0 – 192.168.255.255 I have a dataframe with one column called IP_Address. I want to create another column called IP_Type with the value…
jreyez
  • 171
  • 3
  • 4
  • 15
2
votes
3 answers

Heroku Geolocation >> Always Returns "Seattle, WA"

In Rails 3, both the geo_ip and the geo_location gems return accurate results on my local machine, but once uploaded to Heroku, persistently returns "Seattle, WA" (I'm located in Pennsylvania). I did some digging, and found that the Heroku shared…
Andy Sharkey
  • 65
  • 1
  • 5