Cannot assign Static IP address

SirDarknight

Distinguished
Jun 5, 2013
116
1
18,685
I got a new dedicated server, I installed Windows 10 on it (I have my reasons). I think that my server is directly connected by ethernet cable(not through a router), because my public IP is the same as my server's device IPv4.

image.png


So, I wanted to assign a static one to my server:

image.png


And it failed, I got disconnected from internet. I used Windows Diagnosis and it diagnosed that DHCP server is disabled, enabling it would fix it. So I enabled it and everything went back to normal.

Then I tried something like this:

image.png


But it failed too(obviously). Lastly, there's a Networking Utility tool from www.portforward.com, I ran it and there was a make your IP static option, it suggested me some IPs and assigned them but didn't work either.

Note: My server only provides a firewall, nothing else. So there's no router settings or anything
 
What exactly are you trying to do?

If you're trying to use your server as a router/firewall, then you need a second Ethernet card in it. The first Ethernet card you should set to its original configuration, so it gets its IP address via DHCP from your ISP. The second ethernet card will be for your internal network, and can be configured with whatever static IP address you like and plug it into a switch for the other devices on your LAN. You'll also have to set up DHCP, DNS, and routing between the two ethernet cards on your server, but that's beyond the scope of this question.

If you're just trying to put a server on your LAN, just get a router. Plug the router into your modem, then plug the server and other devices into the router. You can set the server to a static IP address (in your LAN) if you wish, just be sure to exclude that IP from the IP addresses the router can give via DHCP.

If you're trying to put a server on your LAN but have it control DHCP, DNS, etc, you still need a router. Plug the router into your modem, but disable its DHCP server and DNS. Plug the server into the router, set up DHCP (with the router's IP address as gateway) and DNS on the server, then plug other devices into the router.

What you cannot do is what you've done - put your server on the public Internet and assign it any IP address that you want. You can request a static IP address from your ISP, but your ISP is the one who provides it for you. You do not pick it yourself. If you want a static public IP address, then you have to request it from the ISP, and they'll usually charge you extra for it.

Or if you don't really need a static IP address, just a consistent way to access your home network from the Internet, you can set up Dynamic DNS That's where your server or router tells the DDNS service your current public IP address every hour or ever 15 minutes. On the service, you link it to a domain name that you own. Then when you try to access that domain name from anywhere on the Internet, the DDNS service automatically translates it into your home network's current IP address.

https://www.noip.com/free
 


I wasn't trying to do anything actually. My home PC could be assigned an IP like that, so I tried to do it with the server too.
Also, I can't set up a 'Bridged Connection' on my server's network. For example, a bridged connection is necessary for Virtual machines. I installed Ubuntu on VMware but it didn't get internet access on any setup other than 'NAT' but NAT has some limitations so I thought if I could assign a static IP like that, I could perhaps successfully setup Bridged Networking