Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet by lan through a hub

Status
Not open for further replies.

kruxty

Programmer
Jul 17, 2001
197
PT
Hi,

I've internet by lan. Two computers. One hub.
I know that it's possible to connect the two computers through a hub, but one have to be a server.
It's possible that i have two idependent computers and just one conecction?
I was thinking something like connect the modem on the uplink port, and the computers on any other port. Is it possible?
 
Hi,

A hub will not forward packets which aren't destined for machines outside of its connection.
If you have a computer with an internet connection, consider running a proxy server on it and have the other machine connect to the proxy server.
Then, the packets from the other machine will be forwarded to the net and replies also forwarded to your non connected PC.

If you don't want a PC to do this, replace the hub with a router which can connect directly to your internet connection.

John
 
" A hub will not forward packets which aren't destined for machines outside of its connection. "

But isn't the machines inside the hub's connection?
 
If your ISP either gives or rents additional IP numbers via DHCP you are all set now.

If not, you need a router, either in software of hardware.,

I tried to remain child-like, all I acheived was childish.
 
Krusty:

1. a hub simply links PCs. you don't need a server - you do need an appropriate networking protocol installed & configured (e.g. TCP/IP)

2. sharing an internet connection - is this broadband?
your ISP probably only gives you 1 IP. this ip is allocated to the PC plugged into the modem. You cannot plug more than one PC into the modem (even through a hub) - you need to use some sort of router.
(the exception is if your ISP allocates more than 1 IP address - this is not usual, and would normally cost extra)

sample setup:
ISP --- Modem --- router --- hub --- pcs

the router can be hardware (linksys / belkin / dlink, etc) or software (ICS - Internet Connection Sharing: with Windows from Win98SE onwards.)

hubs are simple passive devices, they link PCs, nothing more.

Hope this answers your question - if no, could you post back with what you're trying to do? (e.g share broadband / dialup internet access across machines, etc).

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
But... can't i connect the modem on the uplink port and share the modem to other ports?
 
You sure can and the PCs will see each other, and ONE of them will be able to be online.

The other PC is unknown to your ISP and has no IP number assigned by them, so they will not route it's packets anywhere.

I tried to remain child-like, all I acheived was childish.
 
no - not unless it's an integrated modem / router.

your modem is given 1 IP address by your ISP, it then passes this IP address to the PC plugged into it.

This design:
ISP --- modem --- hub --- PCs

only works if you have more than 1 IP allocated.
otherwise, one of the PCs plugged into the HUB will get the one valid IP address, the others won't (they will either have a static IP you've allocated, or a duff IP 169.x.x.x).

The uplink port is merely to chain hubs / switches...not for sharing a modem.

Either way, without a valid IP configuration, you won't be able to access the internet.


<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
jimbo - do you get the impression we're talking at the same time? [lol]

at least we agree on the gist, if not quite the way we say it!

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
manarth

Seeing the same answer with different presentation may help, one way of saying it may strike a chord that some other, just as correct way of saying the answer leaves one cold.

A virture of thses forums is not that we all say the same answer but that we bring additional viewpoints to bear on a challenge. It is wonderful to watch the blind men and the elephant sometimes!


I tried to remain child-like, all I acheived was childish.
 
lol

it's amusing to see the question answered yes by you and no by me, and we then both give an identical explanation, and - of course (!) - we both are right :)
I completely agree about the elephant!


<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top