I've linked my computer with a hub with the desktop of my friend. But I'm not able to run internet on both the desktop simultaneously.
However able to share data with my friend pc.

Dani AI

Generated

A concise troubleshooting guide and practical fixes that build on the replies from , and .

Start with these diagnostics (collect on both machines):

ipconfig /all
ipconfig /release
ipconfig /renew
ping <default_gateway>
ping 8.8.8.8

What to inspect in the output: whether each PC has a valid IPv4 address, the same subnet, a default gateway and a DHCP server. A 169.254.x.x address means no DHCP lease. A public-style address on both machines usually requires a routing/NAT device — hubs do not perform NAT.

Common causes and fixes (applies even years later)

  • ISP/modem behavior: many modems hand out only one public IP or bind to a single MAC. A hub just forwards frames and cannot share a single public IP between multiple PCs. The reliable fix is a NAT router (consumer router) between the modem and the local network.
  • No router available: Windows Internet Connection Sharing (ICS) can be used on the PC that has the working internet connection. In Windows, enable the adapter's Sharing option so the other PC uses that host as gateway; note the host must be powered on for internet to work. Ensure Windows Firewall rules allow sharing.
  • Cabling and NICs: when using an intermediate hub/switch, use straight-through cables for PC-to-hub links. For direct NIC-to-NIC connections, use a crossover cable unless both NICs support auto MDI-X. Confirm link LEDs on NICs and the hub to verify physical connectivity.
  • DHCP vs static: if ICS is used, either let ICS provide addresses or set static LAN addresses so the client’s gateway points at the sharing PC’s LAN IP.

If the above diagnostics still leave uncertainty, the most robust long-term solution is a small NAT router. It resolves ISP single-IP limits, provides DHCP for all local hosts, and isolates firewall/NAT functions from the desktops.

Recommended Answers

All 4 Replies

What are your IP addresses?

What are your IP addresses?

It changes whenever I connect to internet

I've linked my computer with a hub with the desktop of my friend. But I'm not able to run internet on both the desktop simultaneously.
However able to share data with my friend pc.

Hi, you can check your internet cable once again. Hope you will get the exact problem.


All the best!

there are two types of cables one straight and one cross cable so use straight cable in this condition . regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.