Identifying a router

J

Janiv Ratson

Hi,
I have written a program that set an ICS on an XP PC.
Now I want to add a new feature (very important one).
I want my program to identify when a user connects its PC to a router.

My not good solution was, to search for DHCP server in the network, though,
the ICS DHCP is the one server that always identified by my program.
If I manually cancel the ICS, than my program recognize my router.
I want my program to do it automatically, I want it to recognize that a PC
with an ICS is now connected to a router, and get a new IP address.

I can programatically remove ICS and than my program identify the router,
but I dont want to use this solution. Hence, I dont wanna remove the ICS
manually any time my program is loaded.

Your help is really needed,
10x,
Janiv Ratson.
 
J

Jim Macklin

Help how? Please saw what type of identification you want?

If the router is connected you can use a program such as
EVEREST from www.lavalys.com to get details. You can look
in device manager to see what is shown there.

But you can look at the router and read the label.


--
The people think the Constitution protects their rights;
But government sees it as an obstacle to be overcome.


| Please Help !
| 10x,
| J.
|
|
 
J

Jim Macklin

Try the EVEREST program

| I want to do it programmatically.
| 10x.
| J.
|
in message
| | > Help how? Please saw what type of identification you
want?
| >
| > If the router is connected you can use a program such as
| > EVEREST from www.lavalys.com to get details. You can
look
| > in device manager to see what is shown there.
| >
| > But you can look at the router and read the label.
| >
| >
| > --
| > The people think the Constitution protects their rights;
| > But government sees it as an obstacle to be overcome.
| >
| >
| > | > | Please Help !
| > | 10x,
| > | J.
| > |
| > |
| >
| >
|
|
 
G

Guest

Janiv Ratson said:
My not good solution was, to search for DHCP server in the network, though,
the ICS DHCP is the one server that always identified by my program.
If I manually cancel the ICS, than my program recognize my router.
I want my program to do it automatically, I want it to recognize that a PC
with an ICS is now connected to a router, and get a new IP address.

I'm very confused by what you are trying to acheive. Why are you using ICS
if you have a router?

Could you give some more details on the problem you have (rather than what
you think you need to do) and then it might be easier to suggest a solution
to you.

AndyC
 
J

Janiv Ratson

10x all.
More details:

I have a program that sit on a clients PC.
The specific situation we'r talking about is a case that a user has an ICS
installed and 2 PCz.
Now, the user goes to store, buy a router and put the cables in (connect the
2 PCz to the router).
The user know nothing(I mean NOTHING) about computers and networks, my
program should automatically recognize the router, and remove the ICS so the
PCz will B connected via Router.

My program's problem is that while ICS is runing on my XP machine, I cannot
identify the router, becuase my identification is made by seeking for a dhcp
server (I M not sure it is the best solution, I'll B glad to know others),
and the ICS DHCP is the one that the XP machine identify (while the other
machine, which is win98 and does not have ICS installed, or chekced,
identifies the router DHCP server).

I hope I made my clear ,,,
10xx for your help all.
Janiv.
 
J

Jim Macklin

Can your client read the name of the router from the label?
Did the cable get plugged into the correct ports on the
router, on a 4 port router there are 5 RJ45 connectors, one
is for the Internet, the other 4 are for the LAN.


--
The people think the Constitution protects their rights;
But government sees it as an obstacle to be overcome.


| 10x all.
| More details:
|
| I have a program that sit on a clients PC.
| The specific situation we'r talking about is a case that a
user has an ICS
| installed and 2 PCz.
| Now, the user goes to store, buy a router and put the
cables in (connect the
| 2 PCz to the router).
| The user know nothing(I mean NOTHING) about computers and
networks, my
| program should automatically recognize the router, and
remove the ICS so the
| PCz will B connected via Router.
|
| My program's problem is that while ICS is runing on my XP
machine, I cannot
| identify the router, becuase my identification is made by
seeking for a dhcp
| server (I M not sure it is the best solution, I'll B glad
to know others),
| and the ICS DHCP is the one that the XP machine identify
(while the other
| machine, which is win98 and does not have ICS installed,
or chekced,
| identifies the router DHCP server).
|
| I hope I made my clear ,,,
| 10xx for your help all.
| Janiv.
|
|
|
| | >
| > | > > My not good solution was, to search for DHCP server in
the network,
| > though,
| > > the ICS DHCP is the one server that always identified
by my program.
| > > If I manually cancel the ICS, than my program
recognize my router.
| > > I want my program to do it automatically, I want it to
recognize that a
| PC
| > > with an ICS is now connected to a router, and get a
new IP address.
| >
| > I'm very confused by what you are trying to acheive. Why
are you using ICS
| > if you have a router?
| >
| > Could you give some more details on the problem you have
(rather than what
| > you think you need to do) and then it might be easier to
suggest a
| solution
| > to you.
| >
| > AndyC
| >
| >
|
|
 
J

Jim Macklin

Get a better client, if the client can't answer the simple
question, "What does it say on the label?" they certainly
are too stupid to even have a computer, telephone or a
business.

If the program is installed on the client's PC you may have
to travel to the client's location and do the configuration
personally, or hire a qualified "hacker" to do the job.


| The client can do nothing ...
| I want it all to be programmatically.
| The cable is plugged well.
|
| 10x,
| Need more help ....
| Please ......
|
| J.
in message
| | > Can your client read the name of the router from the
label?
| > Did the cable get plugged into the correct ports on the
| > router, on a 4 port router there are 5 RJ45 connectors,
one
| > is for the Internet, the other 4 are for the LAN.
| >
| >
| > --
| > The people think the Constitution protects their rights;
| > But government sees it as an obstacle to be overcome.
| >
| >
| > | > | 10x all.
| > | More details:
| > |
| > | I have a program that sit on a clients PC.
| > | The specific situation we'r talking about is a case
that a
| > user has an ICS
| > | installed and 2 PCz.
| > | Now, the user goes to store, buy a router and put the
| > cables in (connect the
| > | 2 PCz to the router).
| > | The user know nothing(I mean NOTHING) about computers
and
| > networks, my
| > | program should automatically recognize the router, and
| > remove the ICS so the
| > | PCz will B connected via Router.
| > |
| > | My program's problem is that while ICS is runing on my
XP
| > machine, I cannot
| > | identify the router, becuase my identification is made
by
| > seeking for a dhcp
| > | server (I M not sure it is the best solution, I'll B
glad
| > to know others),
| > | and the ICS DHCP is the one that the XP machine
identify
| > (while the other
| > | machine, which is win98 and does not have ICS
installed,
| > or chekced,
| > | identifies the router DHCP server).
| > |
| > | I hope I made my clear ,,,
| > | 10xx for your help all.
| > | Janiv.
| > |
| > |
| > |
| > | | > | >
| > | > | > | > > My not good solution was, to search for DHCP
server in
| > the network,
| > | > though,
| > | > > the ICS DHCP is the one server that always
identified
| > by my program.
| > | > > If I manually cancel the ICS, than my program
| > recognize my router.
| > | > > I want my program to do it automatically, I want
it to
| > recognize that a
| > | PC
| > | > > with an ICS is now connected to a router, and get
a
| > new IP address.
| > | >
| > | > I'm very confused by what you are trying to acheive.
Why
| > are you using ICS
| > | > if you have a router?
| > | >
| > | > Could you give some more details on the problem you
have
| > (rather than what
| > | > you think you need to do) and then it might be
easier to
| > suggest a
| > | solution
| > | > to you.
| > | >
| > | > AndyC
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
J

Janiv Ratson

The client can do nothing ...
I want it all to be programmatically.
The cable is plugged well.

10x,
Need more help ....
Please ......

J.
 
G

Guest

I don't think you can do what you want and I don't think you really want to.

Consider the following situation:

Computer A has ICS running and sharing it's modem connection with Computer
B. User buys a wireless router to connect computer B to get rid of the
cables. Your program would then disable ICS and Computer B would no longer
be able to access the internet. The correct approach in that situation would
be to disable DHCP on the router and there lies your problem.

There is fundamentally no difference between a DHCP server from ICS or the
DHCP server from the router and detecting which is the "right" one is not
possible. Your user either needs to learn a bit of networking basics or get
someone who knows what they are doing to set things up for them. Not all
problems can be solved programatically I'm afraid...

AndyC
 
S

Sean Gahan

Janiv,
In order for ICS to work 2 network cards (with connections) are required.
If the customer goes out and buys a firewall/router, then there is an
assumption that there will only be one network connection from the machine
that was running ICS to the firewall. If this is the case (using only one
network card) then ICS, DHCP, and NAT will be disabled and the network
interface will be set to automatically obtain a new ip. If your client
machine was automatically obtaining it's ip then all you have to do is plug
it in to the firewall and you are done. If the client machine's ip was
statically set, you may have to point to a different gateway and change the
ip scope; if the firewall is a D-Link you are done, if the firewall is a
Linksys you will have to change it. But then, the owness of configuring the
end user's network is on the end user; if the end user really knows nothing
about a computer then they would be automatically obtaining an ip anyway.
Perhaps if you had done some testing with ICS you would have discovered this
too.

Regards,

Sean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top