220-1102Chapter 5 of 131Objective 1.5

Windows Networking and File Sharing

This chapter covers Windows networking and file sharing, a core topic for the CompTIA A+ Core 2 (220-1102) exam, specifically under Objective 1.5 (Given a scenario, configure Microsoft Windows networking on a client/desktop). Understanding how Windows handles network configuration, resource sharing, and troubleshooting is essential because approximately 10-15% of exam questions touch on networking concepts, including IP configuration, network profiles, and sharing permissions. This chapter will give you the technical depth to answer scenario-based questions confidently.

25 min read
Intermediate
Updated May 31, 2026

Windows Networking as a Postal Service

Windows networking functions like a postal service with multiple layers. The network adapter is your mailbox, with a unique address (MAC address) assigned by the manufacturer. The IP address is like your street address, which can change if you move (DHCP) or be permanent (static). The subnet mask tells you which part of the address is your neighborhood and which is the specific house. The default gateway is the local post office that handles all mail going to other neighborhoods. DNS is the phone book that translates names (like 'server01.contoso.com') into street addresses. When you send a file share request, it's like mailing a letter: your computer wraps the data in an envelope (packet) with the destination IP, hands it to the gateway (post office), which forwards it through various postal sorting centers (routers) until it reaches the destination mailbox. The recipient's computer unwraps the packet and delivers it to the application (SMB service). If the destination is on the same subnet, the letter goes directly without the post office. Broadcasts are like sending a postcard to every house on your block – useful for finding a neighbor (ARP request) but inefficient for large neighborhoods. Firewalls are like postal inspectors that check packages for prohibited items. Network discovery and file sharing rely on this entire system working correctly – if any part fails (wrong address, blocked port, missing phone book entry), the communication fails.

How It Actually Works

Overview of Windows Networking

Windows networking is built on the TCP/IP protocol suite, which is the standard for communication across the internet and most local networks. In Windows, you configure network settings primarily through the Network and Sharing Center, Settings app, or command-line tools like netsh, ipconfig, and powershell. The exam expects you to know how to configure IP addresses (static vs. dynamic), DNS, and default gateway, as well as understand network locations (Private, Public, Domain) and how they affect firewall rules and discovery.

IP Address Configuration

Every network interface in Windows needs an IP address to communicate. There are two methods: - Dynamic Host Configuration Protocol (DHCP): The client sends a broadcast DHCPDISCOVER message, the DHCP server responds with DHCPOFFER, the client sends DHCPREQUEST, and the server acknowledges with DHCPACK. This process uses UDP ports 67 (server) and 68 (client). Windows clients by default obtain an IP automatically. If DHCP fails, Windows uses Automatic Private IP Addressing (APIPA) to assign an address in the 169.254.0.0/16 range with a subnet mask of 255.255.0.0. APIPA addresses are not routable and only allow communication with other APIPA hosts on the same subnet. - Static IP: Manually configured using the network adapter's properties. You must provide IP address, subnet mask, default gateway, and DNS servers. Static IPs are typically used for servers or devices that need a fixed address.

To check IP configuration, use:

ipconfig /all

This displays all network adapters, their IP addresses, MAC addresses, DHCP status, lease information, and DNS servers.

Subnet Mask and Default Gateway

The subnet mask determines which part of the IP address identifies the network and which identifies the host. For example, with a mask of 255.255.255.0, the first three octets are the network portion. The default gateway is the IP address of the router that forwards traffic to other networks. Without a correct default gateway, your computer can only communicate within its own subnet.

DNS Configuration

Domain Name System (DNS) resolves hostnames to IP addresses. In Windows, you can configure DNS servers manually or via DHCP. To verify DNS resolution, use:

nslookup example.com

Or:

ping -n 1 example.com

If DNS fails, you may get a 'Name not resolved' error. Windows also supports DNS suffixes and the Hosts file (located at C:\Windows\System32\drivers\etc\hosts) for manual name-to-IP mappings. The Hosts file takes precedence over DNS.

Network Locations (Profiles)

Windows categorizes networks into three profiles: - Public: Used for networks like coffee shops or airports. Network discovery and file sharing are turned off by default. Firewall rules are more restrictive. - Private: For home or work networks you trust. Network discovery and file sharing are enabled. Firewall rules are less restrictive. - Domain: Used when the computer is joined to an Active Directory domain. Settings are managed by Group Policy.

You can change the network location via Settings > Network & Internet > Wi-Fi or Ethernet > click on the network name > change network profile. The exam may ask which profile to choose for a home network (Private) or a public hotspot (Public).

Network Discovery and File Sharing

Network discovery allows your computer to see other devices on the network and be seen by them. It uses the Function Discovery Resource Publication (FDResPub) and Function Discovery Provider Host (FDPHost) services, along with SSDP (Simple Service Discovery Protocol) and NetBIOS over TCP/IP. To enable network discovery, go to Control Panel > Network and Sharing Center > Advanced sharing settings. For file sharing, Windows uses the Server Message Block (SMB) protocol, which operates over port 445 (TCP). SMB allows sharing of files, printers, and other resources.

To share a folder: 1. Right-click the folder > Properties > Sharing tab > Share. 2. Add users or groups (e.g., Everyone) and set permissions (Read or Read/Write). 3. Click Share and note the network path (e.g., \\COMPUTERNAME\ShareName).

Permissions are cumulative: the effective permission is the most permissive combination of share permissions and NTFS permissions. For example, if share permissions allow Read and NTFS permissions allow Write, the effective permission is Write (since NTFS is more restrictive? Actually, the most restrictive permission applies when combining share and NTFS: the effective permission is the more restrictive of the two. So if share says Read and NTFS says Write, the user gets Read. If share says Full Control and NTFS says Read, the user gets Read. This is a common exam trap.

HomeGroup (Removed)

Note: HomeGroup was a feature for easy sharing in Windows 7, 8, and 10. It has been removed from Windows 10 (version 1803 and later) and Windows 11. The exam may reference it historically, but modern Windows uses workgroups or domains.

Workgroups vs. Domains

Workgroup: A peer-to-peer network where each computer manages its own user accounts. Suitable for small networks (up to 20 computers). To join a workgroup, go to System Properties > Computer Name/Domain Changes.

Domain: A client-server network with centralized authentication via Active Directory. Requires a domain controller. To join a domain, you need a domain account and network connectivity to the domain controller.

Command-Line Tools

ipconfig: Display IP configuration. Use /release and /renew for DHCP.

ping: Test connectivity. ping -t for continuous ping.

tracert: Trace route to destination.

nslookup: DNS lookup.

netstat: Display active connections and listening ports.

netsh: Advanced network configuration. For example, netsh interface ip set address "Local Area Connection" static 192.168.1.10 255.255.255.0 192.168.1.1 sets a static IP.

pathping: Combines ping and tracert with packet loss statistics.

Troubleshooting Common Issues

Incorrect IP address: Check DHCP server or static configuration.

DNS failure: Verify DNS server settings, try nslookup, flush DNS cache with ipconfig /flushdns.

No connectivity: Check physical connection, link lights, firewall settings.

Cannot access shared folder: Ensure network discovery is on, correct permissions, firewall allows SMB (port 445), and the computer is on the same subnet or has routing.

APIPA address: Indicates DHCP failure. Check DHCP service or cable.

Windows Firewall

Windows Firewall with Advanced Security can block or allow traffic based on rules. By default, it blocks inbound connections except those matching an allow rule. For file sharing, you may need to enable the 'File and Printer Sharing' inbound rule. You can manage firewall via Control Panel or wf.msc.

Remote Desktop

Remote Desktop Protocol (RDP) allows remote connection to another Windows computer. Port 3389 (TCP). To enable: System Properties > Remote tab > Allow remote connections. The exam may ask about RDP vs. Remote Assistance (which uses port 3389 as well, but requires user invitation).

Summary

Understanding these concepts is crucial for the exam. You will be asked to configure network settings, choose appropriate profiles, troubleshoot connectivity, and set up file sharing. Practice using the command-line tools and know the default ports and protocols.

Walk-Through

1

Configure Static IP Address

1. Open Network and Sharing Center (Control Panel > Network and Internet > Network and Sharing Center). 2. Click 'Change adapter settings' on the left. 3. Right-click the active network adapter (e.g., Ethernet) and select Properties. 4. Select 'Internet Protocol Version 4 (TCP/IPv4)' and click Properties. 5. Choose 'Use the following IP address' and enter the IP address, subnet mask, and default gateway. For example: IP: 192.168.1.100, Mask: 255.255.255.0, Gateway: 192.168.1.1. 6. Choose 'Use the following DNS server addresses' and enter preferred and alternate DNS (e.g., 8.8.8.8 and 8.8.4.4). 7. Click OK and close all windows. 8. Verify with `ipconfig` in Command Prompt. The IP address should now be static.

2

Join a Workgroup

1. Open System Properties (right-click This PC > Properties > Advanced system settings > Computer Name tab). 2. Click 'Change' under 'To rename this computer or change its domain or workgroup'. 3. Select 'Workgroup' and enter the workgroup name (e.g., WORKGROUP). 4. Click OK. You will be prompted to restart the computer. 5. After restart, the computer is part of the workgroup. All computers in the same workgroup can see each other if network discovery is enabled. Note: Workgroups are flat and have no centralized authentication; each computer manages its own local user accounts.

3

Join a Domain

1. Ensure you have a domain controller available and a domain user account. 2. Open System Properties > Computer Name tab > Change. 3. Select 'Domain' and enter the domain name (e.g., contoso.com). 4. Click OK and provide domain administrator credentials when prompted. 5. The computer will attempt to contact the domain controller. If successful, you'll be prompted to restart. 6. After restart, log in with domain credentials. The computer now receives Group Policy settings and can access domain resources. Joining a domain requires network connectivity to the domain controller and proper DNS resolution of the domain.

4

Share a Folder with Permissions

1. Right-click the folder you want to share and select Properties. 2. Go to the Sharing tab and click 'Share'. 3. In the dropdown, select the users or groups you want to share with (e.g., Everyone, or a specific user). 4. Set permission level: Read (can view files) or Read/Write (can modify files). 5. Click Share. You'll see the network path (e.g., \\COMPUTERNAME\ShareName). 6. Click Done. 7. To set more granular permissions, click 'Advanced Sharing' in the Sharing tab, check 'Share this folder', set share name, and click Permissions to set share-level permissions. 8. Additionally, NTFS permissions on the folder (Security tab) apply when accessed locally or over the network. Effective permission is the most restrictive of share and NTFS permissions.

5

Enable Network Discovery

1. Open Control Panel > Network and Sharing Center > Advanced sharing settings. 2. Under the current network profile (Private, Guest/Public, or Domain), expand the section. 3. For 'Network discovery', select 'Turn on network discovery'. 4. For 'File and printer sharing', select 'Turn on file and printer sharing'. 5. Click Save changes. 6. Network discovery uses the Function Discovery services and SSDP (port 1900 UDP) and NetBIOS (ports 137-139). Firewall must allow these. You can also enable network discovery via Settings > Network & Internet > Ethernet > Change advanced sharing options.

What This Looks Like on the Job

In an enterprise environment, Windows networking and file sharing are fundamental. Consider a company with 500 employees using Windows 10/11 workstations joined to an Active Directory domain. The IT team configures DHCP to assign IP addresses from a specific scope (e.g., 10.0.1.0/24) with DNS servers pointing to internal domain controllers. File servers running Windows Server share departmental folders using SMB. For example, the Accounting department has a shared folder '\\fileserver\accounting' with NTFS permissions granting Read/Write to the 'Accounting' AD group and Read to 'Auditors'. Share permissions are set to 'Everyone: Full Control' so that NTFS permissions alone control access. This is a common best practice: set share permissions to Full Control for Everyone and rely on NTFS for fine-grained control.

Another scenario: A remote office with a small workgroup of 10 users. They use static IPs because there is no DHCP server. They share a printer via 'File and Printer Sharing' and a common folder for documents. Troubleshooting often involves checking that all computers are on the same subnet (e.g., 192.168.0.x with mask 255.255.255.0) and that the Windows Firewall allows SMB traffic (port 445). If a user cannot access the shared folder, the help desk checks if network discovery is enabled, if the folder is shared, and if the user has permissions. They might use net use to map a drive: net use Z: \\SERVER\Share /user:DOMAIN\username. If that fails, they check DNS resolution with nslookup SERVER or ping the server by name.

Common misconfigurations include: forgetting to change network profile from Public to Private (blocks discovery), incorrect subnet mask (causing 'unreachable' errors), or APIPA addresses from a failed DHCP server. In large networks, performance considerations include SMB Multichannel for faster transfers and disabling SMB1 due to security vulnerabilities (like EternalBlue). The exam expects you to know these real-world practices, including the fact that SMB1 is disabled by default in modern Windows and should remain disabled.

How 220-1102 Actually Tests This

The 220-1102 exam tests Windows networking under Objective 1.5: 'Given a scenario, configure Microsoft Windows networking on a client/desktop.' This includes:

Configuring IP address settings (static vs. DHCP)

Configuring network profiles (Public, Private, Domain)

Joining a workgroup or domain

Configuring file sharing and permissions

Troubleshooting network connectivity

Using command-line tools (ipconfig, ping, nslookup, netstat, tracert, netsh)

Common wrong answers and traps: 1. APIPA address is always 169.254.x.x/16: Candidates often think APIPA is a valid IP for internet access. In reality, APIPA addresses are not routable and only allow local subnet communication. If you see a 169.254.x.x address, the computer failed to get a DHCP lease. 2. Share permissions vs. NTFS permissions: The exam loves to ask about effective permissions. The most restrictive permission applies when combining share and NTFS. Many candidates incorrectly think they are cumulative (i.e., the most permissive). For example, if share allows Read and NTFS allows Write, the user gets Read (restrictive wins). If share allows Full Control and NTFS allows Read, the user gets Read. 3. HomeGroup still exists: Some candidates think HomeGroup is a current feature. It was removed in Windows 10 1803. The exam may mention it in older context, but for modern Windows, use workgroups. 4. Public network profile allows file sharing: No, Public profile disables network discovery and file sharing by default. Only Private or Domain profiles allow sharing. 5. DNS server order: If you configure multiple DNS servers, Windows queries them in order. If the first fails, it tries the next, but there is a time-out. Candidates may think it load-balances; it does not.

Edge cases:

If a computer has multiple network adapters (e.g., Ethernet and Wi-Fi), Windows uses the metric to determine priority. A lower metric means higher priority.

The hosts file overrides DNS. If you cannot resolve a name, check the hosts file.

Windows Firewall can block ping (ICMP). The 'File and Printer Sharing (Echo Request - ICMPv4-In)' rule must be enabled for ping to work.

To eliminate wrong answers, always consider the underlying mechanism. For permission questions, remember 'most restrictive wins.' For connectivity issues, start with ipconfig to see if you have a valid IP. If you see 169.254.x.x, the problem is DHCP, not DNS.

Key Takeaways

APIPA address range: 169.254.0.0/16; indicates DHCP failure.

Share and NTFS permissions combine with the most restrictive permission winning.

SMB uses TCP port 445; file and printer sharing requires this port open in firewall.

HomeGroup removed in Windows 10 version 1803 and later; use workgroups instead.

Public network profile disables network discovery and file sharing by default.

Command to flush DNS cache: `ipconfig /flushdns`.

Command to display full IP configuration: `ipconfig /all`.

Command to trace route: `tracert destination`.

Windows Firewall can be managed via `wf.msc`.

NetBIOS over TCP/IP uses ports 137-139; often needed for legacy name resolution.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Workgroup

Peer-to-peer; no central authentication.

Each computer manages its own local user accounts.

Suitable for small networks (typically up to 20 computers).

No Group Policy; settings configured locally.

Joining: System Properties > Computer Name > Change > Workgroup.

Domain

Client-server; central authentication via Active Directory.

Users log in with domain credentials managed on domain controllers.

Scalable to thousands of computers.

Group Policy applies settings centrally.

Joining: System Properties > Computer Name > Change > Domain; requires domain controller.

Watch Out for These

Mistake

APIPA addresses (169.254.x.x) are valid for internet access.

Correct

APIPA addresses are link-local and not routable. They only allow communication with other devices on the same subnet. Internet access requires a valid IP from a DHCP server or static configuration.

Mistake

Share permissions and NTFS permissions are cumulative; the effective permission is the most permissive.

Correct

The effective permission is the most restrictive of the two. For example, if share allows Read and NTFS allows Full Control, the user gets Read.

Mistake

HomeGroup is still the recommended way to share files in Windows 10 and 11.

Correct

HomeGroup was removed starting with Windows 10 version 1803. The recommended method is to use workgroups and standard file sharing with SMB.

Mistake

Setting a static IP address requires disabling DHCP on the router.

Correct

Static IP is configured on the client device itself. DHCP on the router can still serve other devices. However, to avoid conflicts, the static IP should be outside the DHCP scope or reserved in DHCP.

Mistake

The Public network profile is the safest for all networks because it blocks all sharing.

Correct

Public profile is appropriate for untrusted networks (e.g., coffee shop). For home or work networks, Private profile should be used to enable legitimate sharing. Using Public on a trusted network unnecessarily blocks features.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

How do I set a static IP address in Windows 10?

Open Network and Sharing Center > Change adapter settings > right-click your adapter > Properties > select Internet Protocol Version 4 (TCP/IPv4) > Properties > choose 'Use the following IP address' and enter the IP, subnet mask, and default gateway. Also set DNS servers. Click OK. Verify with `ipconfig`.

What is the difference between a workgroup and a domain?

A workgroup is a peer-to-peer network where each computer manages its own user accounts, suitable for small networks. A domain uses Active Directory for centralized authentication and management, scalable to large networks. Joining a domain requires a domain controller and domain credentials.

Why can't I see other computers on the network?

Possible causes: Network profile is set to Public (disables discovery), network discovery is turned off, firewall blocks NetBIOS or SSDP, or computers are on different subnets. Check Advanced sharing settings and ensure profile is Private.

How do file sharing permissions work between share and NTFS?

When accessing a shared folder over the network, both share permissions and NTFS permissions apply. The effective permission is the most restrictive of the two. For example, if share allows Read and NTFS allows Write, the user gets Read. Best practice: set share permissions to Full Control for Everyone and use NTFS for granular control.

What is APIPA and when does it occur?

APIPA (Automatic Private IP Addressing) assigns an IP address in the 169.254.0.0/16 range when a DHCP server is unavailable. It allows local subnet communication only. To resolve, check DHCP server or use a static IP.

How do I join a Windows 10 computer to a domain?

Go to System Properties > Computer Name tab > Change > select Domain > enter domain name > provide administrator credentials. The computer must be able to resolve the domain name via DNS and reach a domain controller.

What ports does SMB use?

SMB (Server Message Block) uses TCP port 445. Older versions also used NetBIOS over TCP/IP on ports 137-139, but modern SMB uses only port 445. Ensure firewall allows this port for file sharing.

Terms Worth Knowing

Ready to put this to the test?

You've just covered Windows Networking and File Sharing — now see how well it sticks with free 220-1102 practice questions. Full explanations included, no account needed.

Done with this chapter?