How To Set a A Static IP Address In Windows – Server Basics

A lot of my articles, and IT work in general requires setting a static IP address up for your Windows Server or PC. So here’s how to do it.

Note that this procedure will work equally well for Windows 10, and Server 2016. The procedure is fairly similar for Server 2008 and 2012 though it’s easier to go through the “Network and Sharing Center” to get to the Adapter Settings. The idea is pretty similar for Windows 7/Vista. If you’re using Windows XP, it’s still pretty similar but getting to the Network Properties Window is different.  This guide is specifically for Server 2016.

How To Set a Static IP Address in Windows Server 2016

Step 1 – Click the Start button and then click the gear button on the left hand side of the start panel. This should bring up the Settings Window.

Step 2 – Select “Network and Internet”

Step 3 – Select “Ethernet” from the left hand side. If you’re connected with WiFi, you can click that, it’s all going to the same place eventually anyway. 

Step 4 – Under related settings click on “Change Adapter Settings”. You can also get here in fewer steps by opening the Control Panel, changing the view to “Large Icons”, opening the “Network and Sharing Center” and clicking on the “Change Adapter Settings” on the left.

 

Step 5 – Find your active Ethernet Adapter and right click on it and hit properties. Many actual servers have two when they come out of the box, so if you’ve got it hooked in to your router it’ll be the one that isn’t grayed out. My server is just a fancy PC so it just has one. Normal PC’s usually just have one, so it’s pretty easy to figure out. If you’re trying to do this for your WiFi adapter, right click on it and hit properties, the process is the same.

Step 6 – Most networks are still IP4 so click on TCP/IPv4 settings and hit the “Properties” button.

Step 7 – Enter your static IP address information. If you aren’t sure exactly what to put here, refer to the quick and dirty network guide at the end of this article. I’ll post a better one later for setting up a basic flat network.

Step 8 – Click OK on everything and you’re done!

Quick and Dirty Network Analysis Guide

So you know you server needs a static IP but you don’t really know how to figure out exactly what IP to use? Or even what to put in the DNS information? Well here’s a few tips. Keep in mind this is a method I’ve used for small networks where I had no information going in and it works pretty well but is by no means 100% fool proof. There are things in more complicated networks that can cause this not to work, but for most small to medium sized business and home networks this is a good way to go about it.

Step 1 – Determine Network IP Layout

Find a PC already on the network, open a command prompt and type “ipconfig /all” and hit enter. This should bring up all kinds of network information. You’ll see an IP address, subnet mask, gateway and DNS servers, DHCP server, and other stuff. Write it all down. It’ll probably look something like this on a small network.

IP – 192.168.1.102
Subnet Mask – 255.255.255.0
Gateway – 192.168.1.1

DNS Server: 192.168.1.1
Alternate DNS Server: 8.8.8.8 (may not even have one)

DHCP Server: 192.168.1.1

This is probably a basic network. Again, write it all down, it’s important. Other IP schemes could be something like 10.1.1.1 or 172.16.0.100 or something like that. This method really only starts getting weird on big networks with subnet masks like 255.255.0.0 or really small ones with masks like 255.255.255.240. If you see that, you will probably need to do some additional research.

Step 2 – Find a Free IP address that Hopefully Is Not In DHCP Range

If the IP address is something like 192.168.1.100 or 192.168.1.103, there aren’t many computers on the network, and the DHCP server is the same as the gateway, you’re in luck. It’s a super basic network. If the DHCP server is different, it still doesn’t matter much it’s just something to keep in mind. Likely the range is 192.168.1.100-192.168.1.200. So just cross those IP’s off your list of possibilities.

Personally, for servers I like to start low. So open a command prompt and type “ping 192.168.1.2” and see if you get a response. If you do, type the same thing except change that last 2 to a 3 and keep doing that until you don’t get a response. When you don’t get a response, that’s you’re IP address. Likely as not you won’t get one on your first try if it’s a really small network and they don’t have a server, but there might be some network printers or something in the way and you don’t want to have conflicting IP addresses.

Now if it’s a regular PC or something I like to start higher, so I personally would start at around 240 and start pinging.

Step 3 – Enter the IP Information Into your Server or PC.

Take your newly found IP address and the information you wrote down and enter it into the server using the steps above. Make sure it matches. Practically every time this will work. If you get a “Duplicate IP Address” warning just go back to pinging on a working PC until you find another free one. Sometimes firewalls or something have pinging turned off. There is also free network scanning software you can download that will make this process a lot faster.

Note: If anyone has a better, faster, or quicker way to find a free IP address that you can do from a normal workstation on a network or something I’d be glad to post it. Like I said, this is the method I’ve been using for small networks for a long time where I’ve had no information going in and just needed to install a printer or appliance or something.

How To Set Up A New Windows Domain – Server 2016 Essentials

I had some extra hardware lying around, and my trusty backup drive got full so, I decide it was time to build a lab environment so I could develop stuff easier. This involves, to start with a Windows Server 2016 Essentials server. Hopefully everyone out there will find the process I’m going through to set this all up useful.

One of the first steps is creating a Windows Domain. There’s a pretty good TechNet article on this that gives some really good advice for people new to the industry. There are a few things you don’t get to do often in IT, and creating a domain from scratch, unless you routinely install Windows systems for customers is one of them.

The process for creating a Windows domain is pretty simple and basically the same on newer versions of Server. You set up the server, give it a static IP, promote it to a domain controller, and follow the wizard. It reboots a couple of times, and you have your very own Windows domain.

Once you do this you pretty much can’t go back, so you have to make some decisions and give it some thought beforehand.

Now, like the TechNet article this is mainly for relative beginners with a network requiring one domain controller (possibly two), small to medium size business owners, and technicians just starting to dip their toes into these waters. This is not for Enterprise IT guys with a huge domain forest. You guys already know what you’re doing. If you’re starting out and you feel your network is big enough for ten domain controllers, three sub-domains and has five thousand users, consider hitting that contact form up there. Also I’m using the Essentials version of 2016. The processes I’ll be describing in this and future articles are similar but not exactly the same as what you’ll find in  Standard and Datacenter versions.

Considerations For Naming Your Windows Domain

This is where I’ve seen the biggest mistakes made. You need to answer a few questions and do this very deliberately. Now fortunately, Microsoft has some very good defaults that make this a little easier, but it probably wasn’t always this way.

Questions

  • Do I have a website and email that’s hosted somewhere outside my premises?
  • Will I ALWAYS have that website/email domain or could it be changed it in the future? (Less important)
  • Do I like making really creative changes to my DNS to make things work because I named my internal domain the same as my external hosted domain?
  • Is anyone actually going to care that the internal domain doesn’t match our external website? (The answer is likely not).

The reason is, and let’s use this website as an example. Say, GoDaddy hosts WorkendTech.com and its email. I then name my internal domain “WorkEndTech.com” as I’ve seen many people do. When I pull up a website on any computers attached to that domain, using my domain controller as a DNS server, I won’t able to reach my website, or get e-mail. This is because internally “WorkEndTech.com” is now referring to my domain controller(s), not GoDaddy’s hosting. Also my email will  not magically start going to my email server because I set up an Exchange server to start accepting email for that domain.

This should seem obvious but, you have to tell everything on the Internet where you want that stuff to go. You will then also have to tell your own internal DNS servers that you want “http://WorkEndTech.com” to point to something on the internet, and if your host doesn’t have a static IP assigned to your website, or if they change name servers sometimes, which they may, this can get super annoying. Also, remember once you set the domain up it can’t be changed without wiping the domain controller and starting over.

Now if you host your own website, email, and all that other fun stuff on the very server you’re setting up, this is irrelevant and you might actually consider naming your website and internal domain the same thing for convenience. You can name it something else and point your internal stuff to an internal server a lot easier than the situation above.

Consider using the .local extension for your domain heavily. That way you can differentiate it from your external domain. By default Microsoft will assign it this way.

Setting Up Your First Domain Server 2016 Essentials (And other versions of Server)

So you’ll need a few things before you start.

  • A Static IP for your server.
  • A name for your domain (See considerations above).
  • A hostname for your server.
  • Internet Access for your Server (OK this is breaking some security rules, but it makes time synchronization easier. If your router has an NTP server on it, just network access will do).
  • About 30 minutes.

Step 1 – Install Server 2016 Essentials on your machine. Just get the DVD or use a Bootable USB drive.

Step 2 – Give your server a static IP.  Reboot the server. Ignore the “Configure your Server” wizard that pops up. It’ll pop  up on reboot. You can even close it. I’m not sure how to make it pop back  up manually, but rebooting seems to work fine.

Step 3 – A wizard for “Configuring Your Server” should pop up automatically. Read it, click Next.

Step 4 – Make sure your Time Zone and Date/Time are correct.

If the time and date and time zone aren’t correct hit the “Change System Time and Date Settings” and you need to change the time zone here. Usually it’s just the time zone that’s wrong as it is always set to US Pacific time by default. Click Next once that’s all set up.

Step 5 – Enter your company name. The wizard will suggest a domain name and host name for your machine. With mine, I put in WorkEndTech. It suggested WORKENDTECH as the domain and WorkEndTeServer. Obviously I changed it.

I changed my server name to just WorkEndTechServer and made sure my domain was WorkEndTech.local. You can make doubly sure or change the full domain name by clicking the “Change Full DNS Name”. I highly suggest doing this just to make sure.

You can also go with a different naming scheme for your servers, changing the host name will in no way affect the domain name. Click Next.

Step 6 – Create a network admin username and password. I’d suggest against “administrator”. You can use your own name. I went with WorkEndAdm. Click next.

Step 7 – Choose whether you want to use the recommended security settings or do that all later. I just went with the recommended and clicked next. You can tweak those security settings later if you’d like.  Click Next.

Step 8 – The wizard will then start setting up your server as a domain controller for you. This process can take up to half an hour depending on your hardware. I’ve seen some take as little as three or four minutes. It will reboot, continue to set up, and possibly reboot again.

That’s it. You’re pretty much done. The server is now a domain controller. You can now start joining client PC’s to it, making group policy stuff, adding users into to Active Directory, and adding roles and features.

 

 

USB to Serial Adapters and Kit Suggestions

Way back in 2008 or so I got a couple of serial adapters for my laptop so I could set up various network devices. Most business class devices, even in the 21st century still use the serial port approach to first set up. Something about security or making things harder for technicians to do their job.

Since laptops don’t often come with serial ports anymore this makes things difficult to set up.

Recently I misplaced the best serial adapter I have ever worked with. The IOGEAR USB 2.0 to Serial Adapter I purchased at Best Buy in probably 2008 or sometime around then. I’ve had other adapters, but this one has worked with every operating system from Windows XP to Windows 10. I think I’ve even plugged it into a few Linux boxes and not had to do anything weird to get it to work.  Something  I can’t say with others.

The only real drawback is it has a short cable. I’m always a little jealous of the ones the phone guys carry with the 9 foot cables, but they always break on them. This one went through daily heavy use for several years, and wherever it is I’m sure still works after nearly decade. I replaced it recently with another one exactly like it.

Anyway, I highly recommend IOGEAR stuff, I’ve got an old KVM switch and some other stuff they’ve made and it’s all managed to outlast a lot of the more expensive stuff I’ve bought over the years.

Kit Suggestions

I’ve founds a few cables need to go with this particular adapter over the years. This is a ‘least number of cables you need kit’.

  1. Female to Female Serial Cable – This is what most devices need. Most network appliances are just computers with a regular serial port sticking out of them. Get a really long one of these. The Amazon link is for a ten foot cable. But you can select a three-foot, six-foot, or up to a hundred foot cable. I’ve never needed more than a ten foot cable.
  2. Female to Male Serial Cable – Some appliances have a backwards serial connection like this. I think they expect you’ll have a serial adapter with a long cable. Weirdly they’ll usually come with a cable like this. ShoreTel devices are one big example of this kind of device. I’ve never needed a super long one of these, but it also will double as an extension. I always just carried a six-foot one and kept it coiled up.
  3. Roll Over Cable With Null Modem – Essentially a “Cisco Cable”. You can get one out of the box a switch came in. The Amazon link there has a generic one for $4 but, honestly if you are buddies with some of your local IT guys you can usually get a hand full of these for free. Every time you buy a Cisco equipment or most other equipment that uses these, it usually comes with one. If you have ninety switches, you inevitably have ninety of these lying around.
  4. Regular RJ45 Null Modem – Some devices need weird pin outs and they usually use RJ-45 connections so having a regular old null modem is great and you can just make whatever cable you need. The link comes with two. Some networking equipment will come with these and a rollover cable that detaches so it’s worth watching out for that.

If you need a crossover cable, my suggestion would be to get a short male to female crossover cable, not a female to female one. I’ve never actually seen the need for one, but they sell them so I’m assuming there’s equipment out there that uses them.

Disable Outlook Call Handling In ShoreTel Director

One of the more helpful, or not helpful features of the ShoreTel phone system is Outlook Calendar integration. I’ve worked with the ShoreTel phone system since roughly 2007 in various capacities and this is one of those features that either works, or doesn’t depending on version of Office, ShoreTel, and phase the moon is in. Typically I’ve never really had anyone that actually wanted it so it never got installed on purpose. However, I’ve had some people ask about this particular feature so I thought I’d post a quick fix here on how to disable it on the server-side.

The complaint is typically the phone won’t ring for mysterious reasons even though everything is configured properly. You’ll often hear that the phone stops ringing at 9:00 but then will start again at 10:00 on Tuesdays.

The instructions below are particularly helpful for people in remote areas where it may be difficult to RDP into their machines to uninstall Calendar Integration.

How to Remotely Disable Automatic Outlook Call Handing in ShoreWare Director

Step 1 – Log into ShoreWare Director

Step 2- Go to your user’s Personal Options.

Step 3 – If the box that is labeled “Outlook Automated Call Handing” is checked, simply uncheck it and hit save.

The user’s phone should now ring, even if they have something scheduled in Outlook.

Note – You should be able to change what call handling mode ShoreTel Communicator goes into with Calendar Integration installed in each individual appointment. You may have to go into Outlook’s add-ins manager and physically enable the add-ins if you want the feature to work.

 

Site Changes

I had to change the theme of the site. I haven’t used Chrome in a long time due to it having been a total piece of garbage on most of my machines. Anyway, put it on my trusty Surface 3 as Firefox was taking up a ton of memory, notice basically no links or anything worked with the site on Chrome. Figured that was probably happening to everyone since my other WordPress sites worked fine.

Same problem cropped up on my fiance’s computer running Chrome as well. Figured out it was the WordPress theme. Looked like it hadn’t been updated since 2014 or so. A real shame too, it was a good, no-nonsense theme that loaded fast and worked really well for this blog.

I could probably figure out what the problem is, but it’s probably time to change it and the Twenty Seventeen theme is pretty cool so we’ll see how that runs until I can find something close to what I had or someone who will design me one.