All Questions
Tagged with ip-address network-programming
87
questions
0
votes
2
answers
86
views
What's the difference between WLAN adapter address and host address?
When I connect to a WLAN, I can get a result as following through ipconfig:
Ethernet adapter Ethernet:
IPv4 address . . . . . . . . . . . . : 172.19.83.237
Subnet Mask . . . . . . . . . . . . : ...
1
vote
1
answer
908
views
Why should a webserver listen to a specific port on all interfaces instead of just one specific interface?
This question follows from this (closed/redirected) question: express app server . listen all interfaces instead of localhost only
From that post, I now understand that the following code listens to ...
-1
votes
2
answers
2k
views
How to get router's external ip address?
When I go to my router's configuration page by logging into 192.168.0.1, I see the router's external IP address as: 10.121.69.5
When I check my public IP address via ip4.me, I get the public ip as: 49....
0
votes
1
answer
666
views
Why is my public IP address the same as my private IP address?
It should be impossible right? But I used ipconfig and it is exactly the same as when I use a website to check my public IP address. They both start with 76.
1
vote
1
answer
93
views
Use inet_pton for IP address conversion from a text file not working
I am trying to convert a range of ip addresses contained in a text file using inet_pton function. I need to get ip adresses strings from the text file and pass as src address parameter to inet_pton(). ...
1
vote
1
answer
1k
views
Check if given IP is in given Network range or not in C
I was asked this question in one of the interview and I was strictly asked to do programming in C/C++. I am not much into C++, I have tried writing code in C, can anyone help me improving my code, it ...
0
votes
0
answers
154
views
Finding IP address of another computer on LAN in python
I'm trying to use socket to exchange data between two computers in Python. Right now, I'm able to connect the computer together but I have to manually go in the code and specify the IP address of the ...
0
votes
1
answer
330
views
Get ALL IP addresses that contains X hostname in LAN (Multiple same hostnames)
I'm trying to loop through all IP address within range (192.168.1.1 - 192.168.1.255) and print out the IP address that contains X hostname.
I am trying to use this code, but it only give me the last ...
0
votes
1
answer
292
views
How to check given IP address range contains only one CIDR?
I trying to write a Python script to convert the range between two IP addresses to CIDR,
# cidr.py
import argparse
import netaddr
import sys
parser = argparse.ArgumentParser()
parser.add_argument('...
4
votes
1
answer
5k
views
Flutter: Get local IP address on Android
How do I get the local IP address of my (Android) device in Flutter?
This should be
the local IP address I get assigned via DHCP by my router when connected to WIFI
the local IP address in the VPN ...
0
votes
1
answer
777
views
How can I set source IP to send traffic in Python
I have a script that sends traffic to a server. It marks incoming traffic as known location traffic for a specific IP.
My script sends traffic via Pycurl. I cannot change Pycurl for now, so is there ...
1
vote
1
answer
671
views
how to use android retrofit2 with nodejs server?
I'm dev-ing using retrofit2 with nodejs server. when I call to node server in android, the log of android show.
the request is ended instantly. the result of this address is right. when I go to ...
0
votes
1
answer
33
views
Find the IP of an internet host using its MAC adress only
I would like to avoid VPN for permanent connection to a remote host, I would like to replace the static IP address with the MAC address, and using the MAC to find the IP.
0
votes
0
answers
46
views
Automating Namecheap's browser DNS update with Java — can anyone give some suggestions to proof-of-concept code?
The domain name registrar Namecheap offers a service where customers can point their domains to their IP addresses simply using the browser.
How do I use a browser to dynamically update the host's ...
1
vote
1
answer
51
views
In the Arcus library how can a single IP address create a Subnet object?
In Arcus I can create a Subnet with a single IP Address:
var ipAddress = IPAddress.Parse("192.168.1.1");
var subnet = new Subnet(ipAddress);
Since subnets are not arbitrary ranges of IP addresses ...