Forward Internet access for a SBC that is connected with my PC

Abstract: Enable internet connection sharing on a PC to provide network access to a connected Single Board Computer.

Created: 2026-09-11 by
You can forward internet access from your PC to a Single Board Computer (SBC) by configuring your operating system’s network settings to enable Internet Connection Sharing. This process allows the SBC to use your PC’s active connection as its gateway, effectively bridging the two devices without requiring additional hardware or complex routing configurations.

Understanding the Network Topology

Before applying any changes, it is essential to understand how data flows between your host computer and the target device. In this scenario, your PC acts as both a client on the main network and a router for the SBC. The SBC typically connects via an Ethernet cable or a direct Wi-Fi hotspot created by the PC. When you enable sharing, your PC’s network interface card handles the translation of network address packets, allowing the SBC to reach external servers through your primary connection. If you are experiencing issues where the default gateway cannot be reached during this setup, check your physical connections first. A loose cable or incorrect port selection can prevent the initial handshake required for sharing to function properly. Refer to How to fix default gateway errors if you suspect connectivity issues at the physical layer before proceeding with software configuration.

Configuring Windows for Internet Sharing

Windows provides a built-in feature called Internet Connection Sharing (ICS) that simplifies this task. To begin, open the Control Panel and navigate to Network and Internet, then select Network Connections. You will see a list of all active adapters, including your primary connection (usually Wi-Fi or Ethernet) and the secondary adapter connected to the SBC. Right-click the adapter that has the active internet connection and select Properties. Switch to the Sharing tab in the properties window. Check the box that says "Allow other network users to connect through this computer's Internet connection." A dropdown menu may appear; select the specific network adapter that connects to your SBC from this list. Click OK to apply the changes. Windows will automatically assign a static IP address, typically 192.168.137.1, to the host side of the shared connection. After enabling this setting, verify that the SBC receives an IP address via DHCP. If the SBC fails to obtain an address, ensure that no firewall rules are blocking the DHCP traffic. For more details on managing network interfaces and verifying connectivity, see Verifying tun interface internet access, which outlines diagnostic steps applicable to various interface types.

Setting Up Linux Hosts

Linux systems offer robust tools for sharing internet connections, primarily using iptables for packet forwarding or NetworkManager for a graphical approach. If you prefer command-line control, you must enable IP forwarding in the kernel. Open a terminal and edit the sysctl configuration file located at /etc/sysctl.conf. Uncomment or add the line net.ipv4.ip_forward=1 to allow the system to route packets between interfaces. Apply the changes immediately by running sysctl -p. Next, configure iptables to masquerade outgoing traffic. Use the command sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE, replacing eth0 with your actual internet-facing interface name. Finally, ensure that the firewall allows forwarding between your local interface and the internet interface. Alternatively, if you are using a desktop environment with NetworkManager, right-click your connection profile, go to IPv4 Settings, and change the Method to "Shared to other computers." This method automates the IP assignment and firewall rules, making it ideal for users who prefer not to manage manual iptables rules.

Configuring macOS

macOS includes a user-friendly interface for sharing internet connections, known as Internet Sharing in System Preferences. Navigate to System Preferences and select Network. On the left sidebar, click the Share checkbox. From the "Share your connection from" dropdown, select the interface providing your internet access, such as Wi-Fi or USB Ethernet. In the "To computers using" list, check the box corresponding to the interface connected to your SBC. Click Start to activate the sharing service. macOS will handle the NAT (Network Address Translation) and DHCP services automatically. Your SBC should now request an IP address from the Mac and receive internet access within seconds. It is important to note that macOS may require you to authenticate with an administrator password when starting the service. Additionally, some antivirus software on macOS might interfere with the sharing process. If you notice intermittent loss of internet after enabling sharing, review your security software logs. See Logging intermittent internet loss for guidance on diagnosing these types of unstable connections.

Troubleshooting Common Issues

Even with correct configuration, conflicts can arise. One common issue is IP address conflicts if another router on the network uses the same subnet. Ensure your SBC is set to obtain an IP address automatically rather than using a static IP that overlaps with the host’s shared subnet. Another frequent problem involves firewalls blocking incoming connections. While ICS usually configures the necessary exceptions, third-party security suites may override these settings. Temporarily disable any non-standard firewalls to test if they are the cause of the failure. If your SBC connects but cannot load web pages, check the DNS settings. Most sharing setups provide DNS via DHCP, but if you assigned static IPs manually, you must specify valid DNS servers like 8.8.8.8 or your ISP’s DNS. Also, ensure that you are not trying to prioritize LAN over Wi-Fi incorrectly, as mixing interfaces without proper routing can cause confusion. Read about Prioritizing LAN cable over Wi-Fi to understand how interface metrics affect traffic routing.

Frequently Asked Questions

Can I share internet from a mobile hotspot to an SBC?

Yes, you can share internet from a mobile hotspot created by your phone or PC. The process is identical to sharing from a standard Wi-Fi or Ethernet connection, provided the host device supports creating a secondary network interface.

Why does my SBC get an IP but have no internet access?

This usually indicates a firewall blocking forwarded packets or incorrect DNS configuration. Verify that IP forwarding is enabled on the host and that your firewall allows traffic from the SBC’s subnet to pass through the internet interface.

Does enabling sharing slow down my PC’s internet speed?

Sharing internet adds a small amount of processing overhead due to NAT translation. However, for typical SBC workloads, this impact is negligible and rarely noticeable to the user.

How do I stop sharing internet once I am done?

On Windows, uncheck the sharing box in the adapter properties. On macOS, click Stop in the Internet Sharing preference pane. On Linux, disable IP forwarding and flush your iptables rules using the appropriate commands.

Is it safe to share my home internet with an SBC?

It is generally safe, but the SBC becomes part of your local network. Ensure the SBC has up-to-date security patches and strong passwords, as it can potentially be accessed by other devices on the shared segment.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More