All Questions
Tagged with ip-address windows
78
questions
-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
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....
1
vote
1
answer
1k
views
Password Authentication only denied OpenSS?
Specifically to only using PasswordAuthentication to make a connection. I know there are many posts with regards to public key permission denied. With remote SSH connection attempt:
sshd PC UserName@...
0
votes
1
answer
142
views
How to install peerjs server on windows server with multiple IP addresses
I have installed the peerjs server on my windows server as per github, and successfully get the message:
“Started PeerServer on ::, port: 9000, path: /myapp”.
I then opened port 9000 in the windows ...
-2
votes
2
answers
1k
views
How to get IP Address from url without gethostbyname in Winsock API
I want to get IP Address from URL. I find the answer in google, it only has gethostbyname() function solution, but MSDN said that this function is not used anymore.
I try to use getaddressinfo() or ...
0
votes
1
answer
3k
views
How to get and store the localhost ip address into a variable (Windows 10)
In MacOs I used the below command to get the machine local ip address
echo $(/usr/sbin/ipconfig getifaddr en0)
I can also set this IP address into a variable like this as well
export DISPLAY=$(/usr/...
0
votes
0
answers
197
views
How can I block outbound connection with Winsock
I want to create an app to block IP Address. I read Microsoft docs about Winsock then I know about setsockopt() function. This function has an attribute level that has an option SO_CONDITIONAL_ACCEPT. ...
4
votes
1
answer
897
views
Get only the IP Adress in Anaconda Powershell
I want to get the Output of my Ip Address only inside the Anaconda Powershell in Windows.
curl https://ipinfo.io/ip
Gives me the following:
StatusCode : 200
StatusDescription : OK
...
0
votes
1
answer
1k
views
Cannot access wsl web app from windows after installing docker
I had no issues with accessing my apps running in Ubuntu through WSL from windows until I installed docker and did a reboot.
I checked my hosts configuration file and it looked something like the ...
0
votes
1
answer
53
views
If I want to set aside range of addresses to be assigned to servers
I am assigning the DHCP IPv4 addresses and I would like to set aside 5 addresses for future servers, will that mean that I have to have the end IP address as 192.168.1.249?
screenchot of the range I ...
0
votes
1
answer
175
views
How to display names and IP addresses of devices connected to a network using C++
I am making a program where I have to use TCP/IP connection to transmit and receive data between devices. I would like to be able to detect the names and IP addresses of all devices that are using the ...
0
votes
1
answer
867
views
get local hostname from ip adress i.e. 192.168.1.x python 3 on windows 10
currently using:-
import socket
hostip='192.168.1.62'
getip=socket.getaddrinfo(hostip,port=22)
returns info but does not include Hostname.
seems to be a local DNS problem from other discussions.
...
0
votes
1
answer
1k
views
How to get private client IP address in Microsoft Edge browser using Javascript?
I have tried using WebRTC to find private client IP address using Javascript by following the below link and I am successful in Chrome and Firefox but it didn't work in Microsoft Edge.
https://...
3
votes
4
answers
1k
views
Get computername from hostname in C++?
The IP address is 192.168.23.4. I am able to get the hostname from the ipaddress using the following code snippet:
struct sockaddr_in sa;
char str[INET_ADDRSTRLEN];
inet_pton(AF_INET, "192.168.23.4", ...
1
vote
1
answer
987
views
How do I write a function that blocks or firewalls off traffic to a website that has multiple IP addresses in Windows?
The Question:
I want to write a function that has the following pseudocode signature:
/**
* Blocks all traffic to the given website.
*
* @param {String} domain The domain name of the site to ...