I Have a IIS 10 running into a MS Windows 2016 Standard.
I install IP Address and Domain Restrictions for manage which ip adress is allowed to access to application
but i can't make which Ip is allowed and which IP is deny to access
I try to make IP range but it is refused by Windows
when i add in " Ip address range" like that : 192.168.1.3-192.168.1.6 , Windows send "192.168.1.3-192.168.1.6 " is an invalid Ip address"
As far as I know, we couldn't add the range like "192.168.1.3-192.168.1.6" in IIS range.We should use sub mask.
Example:
Ban the lower half: 192.168.1.1 - "192.168.1.127
IP Address Range: 192.168.1.0
Mask or Prefix: 255.255.255.128
The mask 255.255.255.128 is also known as a "/25", because 25 of the first 32 bits of the address are part of the network address, and the remaining 7 bits are used for host addresses.
I suggest you could refer to below article to understand how sub mask work with IP address.
Wiki:
https://en.wikipedia.org/wiki/Subnetwork#Subnetting
If you want to check your sub mask is right or not, use an online calculator. This one is fairly decent:
https://www.subnetonline.com/pages/subnet-calculators.php
Related
I'm setting up a self hosted server on my own network.
I don't want my ip address to be easily discovered as it's also my home ip address.
I was wondering if setting a dynamic DNS such as Duck DNS would allow to hide it to most users.
If no is there a solution to hide it ?
Post scriptum : The server is running on debian.
No. Setting up DNS would not hide the IP address. You can check with quite easily by using the host utility on Linux for instance:
host stackoverflow.com
stackoverflow.com has address 151.101.129.69
stackoverflow.com has address 151.101.193.69
stackoverflow.com has address 151.101.65.69
stackoverflow.com has address 151.101.1.69
So even if you setup your own hostname, everybody will know the IP anyway. Because in order to connect to your hostname, software will look up the IP and connect to that. If you want to hide your IP, you need to use a for instance a VPN.
Get a cheap VPS with enough bandwidth and use it as proxy, then disclose the proxy IP istead of the origin one.
i use python 3.6 and windows 7
i try to use wmi but not working every time i try to change the ip address
no connection happen with the net
and give me this error DHCP is not enabled for local area connection
my code to change the ip address :
def change_ip_address():
nic_configs = wmi.WMI().Win32_NetworkAdapterConfiguration(IPEnabled=True)
try:
nic=nic_configs[0]
except:
raise Exception("error in change ip address")
ip= u'192.168.43.99'
subnetmask=u'255.255.0.0'
gateway = u'15.0.0.254'
nic.EnableStatic(IPAddress=[ip],SubnetMask=[subnetmask])
nic.SetGateways(DefaultIPGateway=[gateway])
is there any library for windows to do that
I assume that your local network has a DHCP server. This server assigns your PC an IP adress, which it then routes packets to. If you change the IP adress of the nic in your PC, then your PC and the DHCP server no longer agree on the IP adress that you are using. Consequently, packets cannot be routed to your PC, and the PC will report that you do not have an internet connection. There are ways to negotiate a specific IP, assuming that it is available.
If your local network does not have a DHCP server, then there is a server-side configuration that specifies a static IP adress for your MAC adress or the ethernet wall port. In this case, the change must be made on that server.
What you are currently doing, is similar to making up an adress and putting that on your business card and front door. If you were to use a made-up adress, would you expect your mail to arrive to the right door? You would need to at least talk to some civil servant or government official to get it done.
I am owning a Windows PC. I have written a Web application that runs fine. But the problem is my PC's IP changes periodically. I want that application to be accessible in the network (from other pc's) without changing client side code . My client side code is in angular js.
The web server of your web application cannot bind to the correct IP if it doesn't know it in advance.
You can make your IP address static by following these steps:
In Windows, go to the Network and Sharing center
In the left pane, choose "Change adapter settings"
Right click your ethernet or wifi connection (the one connected to your router) and choose Properties
Double click Internet Protocol Version 4 (TCP / IPv4)
As an IP address, choose the one your computer already has (or try another IP address starting with the first same 3 numbers, i.e. xxx.xxx.xxx.yyy)
The default gateway is the IP address of your router
The subnet mask is typically 255.255.255.0
For the DNS server choose Google's 8.8.8.8 and/or your router's IP address
You have several choices depending upon your configuration.
If this is the public dynamic IP you get from your ISP, you can go to your ISP (whoever you get internet service from) and upgrade your service to a static IP address so it won't change.
If this is the public dynamic IP you get from your ISP, you can use a dynamic DNS service to attach a hostname to your IP address and then use that hostname to access the server. The dynamic DDNS app you put on your server will keep the DNS updated whenever your dynamic IP address changes.
If this is just a local IP address on your LAN (a 192.x.x.x or 10.x.x.x address), then you can pick an IP address that your router supports, but is above the range being used for DHCP and set that computer to use that IP address and not DHCP. In Windows, you can go to the networking configuration and choose the IP address instead of using DHCP. Then, the IP address won't ever change. It is important that you pick an address outside the range used for DHCP to avoid any conflicts. On my own LAN where the router is allocating addresses like 192.168.0.x, I manually assign addresses like 192.168.1.250.
This is something that your router handles through a protocol known as DHCP. Basically, the answer is to keep your IP from changing.
Many routers allow you to reserve an IP for certain MAC addresses. I would recommend that you access your router over your local network and work with the GUI it provides to try to configure this... if you're successful, then your IP will no longer change, and problem solved :-) If it's not intuitive, then of course refer to the documentation for your router.
In my work they asked me to configure a switch cisco 2960 and to the switch we will connect printers, they want that the switch gives the ip to the printers with DHCP (we dont have a dhcp server) and they also want that in each individual port an ip would be assigned, doesnt matter if they change the printer they want the same ip address assign this is in case a printer fails and they want only to replace it and dont have to do anything about configurations. I have configured DHCP Server Port-Based Address Allocation but it isnt working
I used this guide http://www.cisco.com/en/US/docs/ios-xml/ios/ipaddr_dhcp/configuration/xe-3se/5700/dhcp-prt-bsd-aa.pdf
but it isnt assigning anything.
Tough to give a good answer without seeing your config. I'm going to assume you've checked you're running a version of code that supports this and that you've checked for typos.
Given that, I can only see one thing. In the doc you've linked to, it shows the syntax for the assignment being:
ip dhcp pool dhcppool
network 10.1.1.0 255.255.255.0
address 10.1.1.7 client-id Et1/0 ascii
In this document which is specifically for the 2960, it shows quotes round the Et1/0. So you have:
ip dhcp pool dhcppool
network 10.1.1.0 255.255.255.0
address 10.1.1.7 client-id "Et1/0" ascii
Beyond that, is it bulking at a certain point or is it taking all the commands?
I don't have a 2960 here to test it, so this is the best I can do.
Hope this helps.
Thank you in advance for someone who answers this question. I used javascript to find out the ip address in my computer, the code is as following
function getip(json){
alert(json.ip); // alerts the ip address
}
I get one ip address which say 123.32.11.1
However when check my ip address on my mac it says I am connecting to xxx and the ip address is 10.1.223.123
I am confused about what's the two different ip address means.
If I am trying to use ip address to identify my geolocation I will need to use the first one. Does that mean only the first ip address means where I am located?
Thank you in advance.
Your IP address is probably 123.32.11.1. Any address in the range 10.x.x.x is a private IP address; sometimes used by your computer for internal business (see here).
Another option is that you have 2 IP addresses by virtue of being connected on 2 separate networks.