Questions tagged [ip-address]

An Internet Protocol address (IP address) is a numerical label assigned to each device in a computer network that uses the Internet Protocol for communication. This is a general tag that covers both IPv4 (like 172.168.100.1) and the newer IPv6 (like 2012:da8:0:1234:7:577:8:2). If you specifically mean any of these, use IPv4 or IPv6 tags.

3875 questions
1
vote
0 answers

Java Detect SSRF: How to detect 0177.1

I want to detect SSRF by validation if a host is localhost. But I cannot detect the addresses "0177.1" as localhost. I tried this code to detect if a host is a localhost. public static boolean isLocalAddress(InetAddress address) { if…
David
  • 164
  • 1
  • 11
1
vote
2 answers

creating cache for faster access of list of dicts in python

I am writing a python program for getting the ipaddress of the website by using socket module. Here, i have a list of dicts with n number of websites and numbers. Here's some sample data: data_list = [{'website': 'www.google.com', 'n': 'n1'},…
Smack Alpha
  • 1,828
  • 1
  • 17
  • 37
1
vote
1 answer

How can I draw a UML class that must be a valid IP address

I want to be able to draw a UML diagram of my code that utilizes IPv4 addresses. They are normally just a string but they must be created in a very specific way to be valid. Here is the regex for one: \b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\. …
Interlooper
  • 494
  • 2
  • 5
  • 14
1
vote
1 answer

How to communicate with a computer in a different Network

So I have already made the GUI and the program and all, and I want the option to enter an ip address on 2 computers in different networks (i enter his and he mine) and that we they communicate logs. Both computers compute something and need to…
1
vote
1 answer

Access parallel windows localhost from Android or iPhone's device (Real device) browser

I am developing an app using Xamarin.Forms. Now I want to connect my mobile app with .Net API project to get datas. I want to connect the mobile project with .Net API project. I have already done following setups: My Parallel Windows IP Config…
subha
  • 1,050
  • 2
  • 15
  • 42
1
vote
1 answer

Getting wrong address from ipaddress.IPv4Network in Python

I'm using ipaddress library to obtain IP address with subnet mask, but it returns wrong address after putting all data. What's the problem? When I used it earlier it was working fine. import…
olanow20
  • 35
  • 6
1
vote
2 answers

How to find IP address of current connection (LAN or WiFi) using Python?

I wan to know the current IP address of my system. I am not able to find any solution for my device as of now. I have tried socket.gethostbyname(socket.gethostname()) approach, but it is returning me 127.0.0.1. Is there any Python package to do so…
tushar_ecmc
  • 186
  • 2
  • 21
1
vote
1 answer

no route to host exception in android even when I use the right ip adress?

So I get the no route to host exception in android and I don't know why... Things i already did: disabled firewall granted internet permission in the manifest file i use the same ip which I get in ipconfig checked if I use the same network This is…
1
vote
2 answers

IP and port of current server in django

I want to user the current IP and port as a variable at multiple servers in Django. I have tried calling api.ipify.org to get IP but is there any better way without making an api call?
anantdd
  • 125
  • 7
1
vote
1 answer

How can I use C# to determine which IP addresses on my local network are static/dynamic?

I am scanning for IPs on my local network, and one of the pieces of information I wish to receive when an IP is found is whether that IP is static or dynamic. So far, the closest question to mine that I have found only addresses checking your own…
1
vote
1 answer

How to pre-process/normalize IP Address dataset to give as input to K-Means clustering algorithm?

Suppose, I have been given a dataset consisting of: Source IP Address (e.g: 10.200.32.150) Source Port Address (e.g: 443) Destination IP Address (e.g: 10.220.32.210) Destination Port Address (e.g: 80) (IP addresses or Port numbers can be repeated…
1
vote
1 answer

What is the meaning of "local_ip" and "primary_ip" in cURL output?

I am trying to connect to a site with curl but it returns error 503. I thought maybe the site blocked my IP. I bought another IP for my VPS and connected with this IP to that site but still I can not connect and have the same error. I view the cURL…
1
vote
0 answers

Eth0 not showing in Ubuntu 18 Desktop

I want to assign a static IP address in Ubuntu using eth0 port. But when I run ifconfig, eth0 is not there: How will I assign a static address to eth0?
alyssaeliyah
  • 2,214
  • 6
  • 33
  • 80
1
vote
0 answers

Pulling specific MAC/IP-addresses from Wi-fi router and directed them to a Raspberry Pi?

The purpose of our project is to “sniff” for specific MAC/IP-addresses so we can use the MAC/IP-addresses to turn off or on the alarm system. The idea is to automate the alarm system in “our house”. We have one raspberry Pi with installed Linux…
1
vote
1 answer

How to calculate CIDR for desired host?

I would like to explain with an example. If I am right, the IP range of 20.0.0.0/24 is as follows: CIDR Range: 20.0.0.0/24 Netmask: 255.255.255.0 Wildcard Bits: 0.0.0.255 First IP: 20.0.0.0 Last IP: 20.0.0.255 Total Host: 256 Also if I am…
TekQ
  • 25
  • 7