Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My laptop is connected to the internet through a wireless modem and connected to another PC via LAN. They both run on Windows 7.

How do I connect to the internet from the PC? What's the procedure? Should the IPs be in the same range?

share|improve this question
2  

4 Answers 4

up vote 1 down vote accepted

As said, usually the best and simplest way is to connect all computers directly to the modem/router.

If you really need to, you could click the wireless network connection in the "Network and Sharing Center" in the Windows control panel of the laptop. By clicking the wireless connection, a window will open that shows the network status. Click the "Properties" button and select "Sharing" tab from the newly opened window. Tick the "Allow other network users connect through..." box and select the wired connection from the dropdown menu. After closing the setting windows from "OK", the network connection should be shared and working with the other PC (unless you have a firewall that blocks this traffic).

The other PC will need to be reconnected after these changes if it doesn't bring up the connection automatically.

share|improve this answer
    
what should i enter to default gateway on other pc ?( that connected to laptot ) –  hamed Mar 12 '12 at 13:45
1  
Have it take the settings automatically. However, if you wish to set the addresses manually, enter the IP address the laptop has on its wired connection as the gateway. If you set the address settings here manually, you should do the same on the laptop as well - otherwise if the laptop changes addresses, internet access stops working on the other PC. –  Unksi Mar 12 '12 at 14:02

Make "Sharing" for Wireless Connection and open LAN adapter properties and manually assign to 192.168.0.1 and 255.255.255.0 sub mack for Host comp. And automatic IP setting for LAN-connecting comp.

share|improve this answer

I've just done this on my PC through my laptop's LAN.

Allow the laptop to connect through DHCP automatic to get its IP and subnet and gateway as well as DNS. Now go to Properties | Share and enable "share this Internet connection". Open LAN port properties and manually add IP address/subnet/DNS with the same ranges as the wireless, but they must be static. Now go to the PC needing the Internet which is plugged into the laptop's LAN; this will also be static. Put the IP address in the same range as well as the subnet. Here's the change: put in the laptop's LAN IP that you configured in the gateway and first DNS, then fill in the laptop's DNS as the secondary DNS. This should now give you your connection to the interweb! Enjoy.

share|improve this answer

Simplest way is to connect all pcs directly to the modem, unless its an older computer, usually it can be a headache..

if they are all connected on the same lan, setup dhcp to allow the modem to dish out the correct IPs for all computers.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.