I have a LAN internet connnection and i have a
friend with a laptop with a wireless network card. can we buy a
wirless pci network card to add to the pc to share the internet connection eventhough its a seperate network. another words can u be part of two networks.

Dani AI

Generated

Yes — a single PC can be on the wired LAN and also provide a wireless network at the same time. 's infrastructure recommendation (use an access point or wireless router) is the simplest and most robust: it gives NAT/DHCP, stronger security (WPA/WPA2), and avoids most host-side routing problems. 's ad-hoc idea also works but is more fragile and depends on drivers and OS support.

Key points for an ad-hoc/hosted setup: the desktop's wireless adapter and driver must support ad-hoc or hosted/AP mode; the OS must be configured to forward/NAT the wired interface (Internet Connection Sharing on Windows, ip_forward + iptables NAT on Linux); firewall rules can block forwarding so test with firewalls disabled while configuring. ICS implementations commonly place the host on 192.168.0.x and provide DHCP — if DHCP fails, assign a static IP on the same subnet to the laptop. Ad-hoc mode on older systems often only supports WEP, which is weak; avoid exposing sensitive traffic.

Practical recommendations and troubleshooting: a cheap wireless router/access point is usually the fastest, most secure choice. If sharing from the PC, confirm the laptop can ping the desktop's wireless IP first, then ping an external IP; inspect the routing table (route print / ipconfig or ip route) if traffic leaves the wrong interface; and avoid bridging the wired and wireless adapters unless the ISP/modem supports multiple MAC addresses.

Recommended Answers

All 3 Replies

yweiser,

Let me know if this setup fits your needs.


FROM INTERNET ---> INTO [Modem] ---> OUT [Modem]---> INTO [PC (NIC1) OUT PC (NIC2)] ---> INTO [Wireless base station (access point)] ---> OUT (wirelessly) [Wireless base station] ---> INTO [Laptop w/ wireless NIC]

Equipment: (in addition to your 1 PC NIC and 1 Wireless Laptop NIC)
1 PC Network Interface Cards (NIC)
1 Wireless base station
2 Ethernet Cables

J_

the network out of the pc i was thinking to make a wirerless ad-hoc connection to connect to the laptop

yweiser,

I'm lost.

J_

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.