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

Mapping a hostname to an IP address on Android | Resolve local hostname/domain on Android

I have a requirement of "map a hostname to an IP address on Android" programmatically. This may require an entry in /system/etc/hosts file. I can see few open-source code that edit the /system/etc/hosts file but require Root Access. Can I achieve…
2
votes
2 answers

How does docker-compose create aliases for link ips

when running docker-compose, all containers have network aliases to the ip of the other containers running in the network. How are these aliases created ? I need to recreate an alias in an nginx container within a Kubernetes cluster, because nginx…
Adrien Lemaire
  • 1,744
  • 2
  • 20
  • 29
2
votes
1 answer

Why doesn't ::1 match 127.0.0.1?

The loopback IP address in IPv6 format is: 0000:0000: 0000:0000: 0000:0000: 0000:0001 which is shortened to: 0:0: 0:0: 0:0: 0:1 which is then shortened to (keep last 2 words, ie. 4 bytes, to match IPv4): :0:1 (But I still don't know why it's double…
Dee
  • 7,455
  • 6
  • 36
  • 70
2
votes
2 answers

Sending IP packet with raw socket in python

To summarize my problems: I have 2 problems: I can't send IP_PACKET variable How do I set the flag in IP packet? (for send) This is my code: #! /usr/bin/python import socket import struct import sys def Create_SOCKET(): global ST …
D.H
  • 37
  • 1
  • 7
2
votes
4 answers

How to use a network IP instead of localhost with nodejs without express?

I'm using nodejs as a server for a videogame, and i want to try the multiplayer part but, I can not connect from outside my computer via localhost. So, I used express before and this worked: var app = express(); var serv = app.listen(8081,…
Alvaro Lopez
  • 43
  • 1
  • 8
2
votes
1 answer

Why does http.Get("http://[::]:1234") work?

I was writing a test where I wanted an HTTP server to listen on a random port and then connect to this port. I wrote: mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Println("foo") }) listener,…
AndreKR
  • 32,613
  • 18
  • 106
  • 168
2
votes
0 answers

Firebase User IP Address

How can one acquire a users IP address when they are interacting with Firebase Real-time database? I have an iOS application that uses Firebase as its backend service and it allows for users to post things to a feed anonymously. If I wanted to trace…
temp
  • 639
  • 1
  • 8
  • 22
2
votes
0 answers

detect os version of remote machine

i'm working on some simple network management tool and it has a scanner that should display all active devices on the network and also show their os and its version. at least i want to get windows and linux versions, but some other (like cisco ios)…
2
votes
2 answers

Get IP Address of DataWriter/Publisher on RTI DDS?

I am using RTI DDS 5.2.3.17 and would like to get the IP address of the DataWriter/Publisher to add to some log messages. How would I go about doing this I am having some trouble in just forming the logic of what to do?
jgr208
  • 2,896
  • 9
  • 36
  • 64
2
votes
1 answer

Erlang: get ip address from hostname

In my local network exists pcs, where have a hostname as example "testhost". How can I from given hostname get a IP-address ? I tried: net_adm:dns_hostname("testhost.fritz.box"). Result: {ok,"testhost.fritz.box"} I need a function which give me…
david
  • 83
  • 1
  • 13
2
votes
1 answer

Which external Display device should I used to Check Android things

Actually, I don't have an external TFT Display or T.v which supported Android operating system. I need to know the IP address that is assigned to my raspberry pi 3 after connecting to the router. I am using Android thing operating System in…
2
votes
2 answers

Amazon AWS Load balancer EC2 instances address ip range

My website is running behind an AWS Classic Load Balancer. It has some scaling policies and it launches some new EC2 instances when it has to. Is it possible to have the range of public IP addresses that will be used for the EC2 instances when they…
Djagu
  • 163
  • 1
  • 12
2
votes
2 answers

Good php API for extracting country code from IP?

I'm wondering has anyone had any experience in doing a whois on an IP and extracting the country code from that IP? Wondering what api would be the cleanest way of doing this with php.
Skizit
  • 43,506
  • 91
  • 209
  • 269
2
votes
4 answers

Get live hosts MAC in local network

Hi I'm working on a small bash script that will scan lan every 5 minutes and get live host and then get theirs MAC addresses. So far I have this: nmap -sP -n -oG - 10.0.0.1-20 | grep "Up" | awk '{print $2}' Which gives me ip addresses. Now I have…
ajitam
  • 371
  • 3
  • 16
2
votes
3 answers

Why is my program sending 'Anonymous IP Packets' and how do I stop that?

So, we just got word today that one of our clients firewall is blocking our HTTP requests because "The [software] is sending anonymous packets to our firewall (a Microsoft TMG firewall) so the firewall is dropping the packets as anonymous access is…