Sharing internet trough a switch for two computers

DougFrippon

Senior member
Jan 31, 2001
649
0
0
So my friend brang his computer here so we could play stuff trough LAN. My ISP provides me with only one IP. I don't have a router.. it's a switch. Is it possible to share internet for both of us?

For now I'm just gonna give us fixed IPs so we wont have access to the internet but it would be better if we had internet working for both of us :)

Thanks
 

OdiN

Banned
Mar 1, 2000
16,430
3
0
So you have to set the IP manually for it to work on your system then?

Okay...well you need a second NIC card and then will have to enable ICS (internet connection sharing - should be a tab for it on your NIC properties window) on your machine to share the internet access.
 

DougFrippon

Senior member
Jan 31, 2001
649
0
0
It is not possible to share internet for both computer with the current hardware I have? I absolutly need a second network card on one of them?...

Wouldn't that render the switch useless then? I could just use a cross-wire cable from one of the card in the case..
 

GreyMittens

Member
Nov 1, 2005
174
0
0
I've never used ICS, however, you should probably be able to get by with just binding 2 ips to the one nic.. unless ics frowns on this setup.

fwiw - buy a router :)
 

DougFrippon

Senior member
Jan 31, 2001
649
0
0
you guys use to many abroviations.. what is ICS? and "nic" ?

Btw I'd get a router if this was a permanent network.. but this is very temporarly .. just for a few days.
 

SpunkyJones

Diamond Member
Apr 1, 2004
5,090
1
81
If your provider only gives you one IP address, you both cannot use the internet with a switch.

 

DougFrippon

Senior member
Jan 31, 2001
649
0
0
Originally posted by: SpunkyJones
If your provider only gives you one IP address, you both cannot use the internet with a switch.

Nice good to know.. Now is it possible for only one of the two computer to have internet and still be able to play games together / share files ?
 

ssbpgsr

Member
Sep 14, 2005
81
0
0
ICS = Internet Connection Sharing
NIC = Network interface card
FWIW = For what it's worth

Yes, you can setup the two computers so that they can share files and play games together, and only have one on the internet. In order to do this, you want to set the ip of the second computer to the same subnet as the first. This setup "may" not play nicely and will not be a safe method to share files.

Realistically if you don't know what a nic is, then you are going to have trouble implementing what I just told you. Buy a router. The amount of time you may put into getting this to work with your current hardware will more than pay for a cheap router. Plus you'll have the security of being behind a firewall when sharing files.
 

DougFrippon

Senior member
Jan 31, 2001
649
0
0
ok
First computer gets this from DHCP :
IP Address. . . . . . . . . . . . : 66.131.117.40
Subnet Mask . . . . . . . . . . . : 255.255.255.0


So on the second computer I use a fixed IP.. like..
IP Address. . . . . . . . . . . . : 192.0.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0


and that would be all?

Btw I know a router is a lot less trouble and more safer.. but as I said earlier this is very temporarly.. I don't want to buy a router for just a few hours...
 

GreyMittens

Member
Nov 1, 2005
174
0
0
Of course not...
----
First computer gets this from DHCP :
IP Address. . . . . . . . . . . . : 66.131.117.40
Subnet Mask . . . . . . . . . . . : 255.255.255.0


So on the second computer I use a fixed IP.. like..
IP Address. . . . . . . . . . . . : 192.0.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
----

This setup wont work, just having the same subnet doesn't help - the IP addresses must also follow a certain set of rules. To make this short and sweet:

Setup computer 1 (currently dhcp) as:
ip 192.168.0.10
sn 255.255.255.0

Computer 2
ip 192.168.0.20
sn 255.255.255.0

Now they will be able to ping each other, however, you will have no internet access. Playing lan games will be fine. This now is where you have to fiddle with ICS on computer 1 (internet connection sharing) and hopefully the wizard will role through and setup your NIC (network interface card) using DHCP.

Basically ICS will have to detect this IP 66.131.117.40 from your cable modem and hopefully is smart enough to use that IP and 192.168.0.10 for your card. Like I said, I've never used ICS and have no idea just how bright it is. A router really simplifies things like this and is a good layer of added protection between your PC and the internet.

Good luck!

*** EDIT: Don't waste your time - you either have to buy a second network card for PC 1 or buy a router ***

http://support.microsoft.com/default.aspx?scid=kb;en-us;265728

Unless there is some other hack to make it work, but by the looks of things you're SOL. I'll let someone else explain that acronym :)

gm
 

ssbpgsr

Member
Sep 14, 2005
81
0
0
Originally posted by: DougFrippon
ok
First computer gets this from DHCP :
IP Address. . . . . . . . . . . . : 66.131.117.40
Subnet Mask . . . . . . . . . . . : 255.255.255.0


So on the second computer I use a fixed IP.. like..
IP Address. . . . . . . . . . . . : 192.0.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0

No, your ip has to be on the same subnetwork.

For example:
192.168.10.25 \24
192.168.10.51 \24

If I were you I'd wouldn't bother with this method as it is likely to be intermittent. The reasoning behind this is because another computer on the internet probably has this second IP as well. The only reason that you'd be able to hit the 2nd computer from the first is that the connection only passes through a switch. The 2nd computer should get a response back to the first faster than through the modem.

Just borrow a NIC from a friend. All good friends have an extra NIC laying around. :)