Wifi Peer to Peer Network setup and sharing internet

DON'T post new tutorials here! Please use the "Pending Submissions" board so the staff can review them first.
Post Reply
User avatar
DNR
Digital Mercenary
Digital Mercenary
Posts: 6114
Joined: 24 Feb 2006, 17:00
18
Location: Michigan USA
Contact:

Wifi Peer to Peer Network setup and sharing internet

Post by DNR »

1. You will need one wireless network card for each computer. If one computer has a cabled internet connection, you will need another open slot on that PC for a wifi card. You can use a USB port wifi antenna rig.

•2. Go into the network card properties and set the SSID to something unique. Make sure to set the SSID to the same value on each machine. If you don't, the network will not work properly. SSID is the Service Set IDentifier - it is important that each computer has the name spelled correctly. It does not have to be complex like your password, it is a name, use proper naming conventions i.e. not your name!

•3. Go into the network card properties and set a channel for the wireless network to use. Make sure you set the channel to the same number on each machine. If you don't have the same value set, the network will not work. The channel is the frequency all the computers will look for signals on.

•4. Set a static LAN IP on all computers. Be sure to put them on the same subnet and in the same IP range. Ex. If you set the IP on one machine to 192.168.1.1, be sure to set the other machine to something inside that same range (192.168.1.2-254). Do Not set the IP as the default Router IP, or the Printer default IPs!! No devices can share the same IP.

•5. Set the network cards to run in "ad-hoc" mode, instead of infrastructure. Firewalls should be turned off so you can work out connectivity, Windows "Share files and Internet" only need to be checked on the computer with the Internet connection. If you want to swap files with the other computers on the network, you might need to enable "sharing" on them as well.


If you want to share your internet connection, follow these steps:


•1. Enable "ICS" on the computer which has internet connectivity. If the cable modem is attached to computer 192.168.1.5 - Write down this computers IP address, since it will be the "host" computer. On that host computer you will select "Share files and Network Connections" - You do not have to select this on the other computers, only this one.

•2. Set the default gateway of the network card on the other computers to the host computers IP address.i.e 192.186.1.5

•3. Set the DNS servers for the network card on the second computer to values given to you by your ISP, this is important, the other computers will query the ISP DNS servers for IP resolution, not the gateway/host computer!!

When sharing your internet connection over an ad-hoc network, the host computer must be on, and connected to the ISP.

To test connectivity:

•1. Go to Start.

•2. Go to Run.

•3. Type "cmd".

•4. Type "ping 192.168.1.4", where x.x.x.x is the IP of one of the machines in the network. If the ad-hoc network is working - that IP will resolve to the computer on the internal network you created, if you fucked up, it will resolve to the IANA BlackHole (because it looked for the IP on the internet)

•5. If the ping is successful, next test the browser if you typed in www.suck-o.com and it returned "unable to resolve.." then you didn't set the DNS IP on the computer. You need either your ISP supplied DNS server or find a Public DNS :

Service provider: ScrubIt
Public dns server address:
67.138.54.100
207.225.209.66

Service provider:dnsadvantage
Dnsadvantage free dns server list:
156.154.70.1
156.154.71.1

Service provider:OpenDNS
OpenDNS free dns server list:
208.67.222.222
208.67.220.220

Set up a Host based Firewall on each computer, setting permissions in the firewall for access - i.e. the Host computer would need to allow the other computers to access its files, while the others don't need to give permissions to any other computer except the host.

The biggest issue is the host computer will be slow when other computers are accessing it - its kind of an expensive router, so get a router instead of setting up your network this way.

The host can run a packetsniffer and will sniff the traffic from the other computers and internet. routers cannot do this.

DNR
-
He gives wisdom to the wise and knowledge to the discerning. He reveals deep and hidden things; he knows what lies in Darkness, and Light dwells with him.

Post Reply