All Questions
Tagged with ip-address python
341
questions
0
votes
0
answers
25
views
scapy custom source address shows failure
I have a python server running on port 8000 (the simple "python3 -m http.server") and I want to send a request with a custom ip address to it, so I wrote:
from scapy.all import IP, TCP, send
...
0
votes
1
answer
59
views
Python IP validation giving incorrect results
I'm trying to validate IP, gateway and subnet mask inputs using the ipaddress library, however I'm getting invalid results when I'm actually trying to use the validated network, which makes me think ...
-2
votes
1
answer
63
views
Check If Computer On Network Is Asleep Without Waking It Up (Python)
I want a quick way to check if a computer on the LAN is awake or not given its IP address (on Windows) without waking it up. I wrote the following, which works:
def is_awake(ipOrName, timeout=0.05):
...
1
vote
2
answers
72
views
Python socket transmitting on correct interface but with wrong source address
I have a multicast system with multiple network interfaces. Packets transmitted using the socket I created are being sent out the correct interface, but the packet's source address is incorrect. The ...
0
votes
0
answers
24
views
How can I get the IPAddr of a non-default interface on a machine that is not mine in Python?
I am trying to lookup the (local) ipaddr for a specific non-default interface on a host that is not the one I'm running on by the name of the host and interface.
socket.gethostbyname(hostname) returns ...
-4
votes
1
answer
46
views
Web scraper becomes slow after sometime [closed]
I've written a Python web scrapper code and I'm trying to fetch data from a dynamic website, but the problem is that the website I'm scrapping data from tracks IPs and slows the response time.
Right ...
0
votes
0
answers
35
views
Changing IP Address using Selenium for Chrome Webdriver [duplicate]
I have a code that makes me repeatedly search and fetch data from a site. I am using Selenium in Python, and the code here seems to work even now and fetches a list of free IP addresses and Ports.
...
1
vote
1
answer
217
views
Failing to connect to a client/server with public IP address
I wish to exchange data between a server (for this purpose, I use a raspberry pi 3) and a pc as client on TWO DIFFERENT NETWORKS. However, I cannot connect the server and client when using the public ...
-1
votes
3
answers
173
views
How to check if an IP address is reserved without using ipaddress module in Python?
According to Wikipedia, the following are all the reserved IPv4 addresses:
RESERVED_IPV4 = [
'0.0.0.0/8',
'10.0.0.0/8',
'100.64.0.0/10',
'127.0.0.0/8',
'169.254.0.0/16',
'172....
0
votes
1
answer
52
views
Nothing is printing on terminal when I'm trying to give cmd an nmap command through python
I'm trying to build a web scanner for a networks project using python. I wanted to use nmap for this to list the devices connected to a host with some IP address. For example, here I'm using the IP ...
0
votes
3
answers
468
views
Sorting CSV with IP address column in pandas
I have a CSV file with a column of IP addresses, MAC addresses and some other data. I want to sort all of the data by the IP addresses in ascending order
Input:
| IP Address | MAC Address | ID |
...
0
votes
1
answer
103
views
Counting used/free ip adresses in subnets with python/pandas
Lets say i have a list of subnets and their master subnets as of
| ip | description | master subnet |
|------------|--------------------------------|---------------|
| 1.1.1....
2
votes
1
answer
471
views
How to sort IPv4 and IPv6 addresses together in a dataframe?
Here is my dataframe:
import pandas as pd
df = pd.DataFrame(
[
{"group": "a", "ip_address": "10.3.110.12"}, # IPV4
{"group": ...
1
vote
0
answers
596
views
Connect to NordVPN using Python in MacOS without using command line tools
So, I wanted to get a few search results for Google without getting blocked for a Machine Learning app. I want to use a python script to rotate my IP Address while making requests to avoid getting ...
0
votes
2
answers
922
views
Cannot connect to socket on '' ip address. Python
He, I have a server python script that listens on ip address '' and port 1337 and now I am trying to connect on the client side to that socket. But for some reason I cannot do that. If i will change ...