2 IPs on one Computer w/ 1 Nic
-
I want to create a program that has it's own IP address that it gets via a standard DHCP server. My question is how would I go about creating a program that retrieve and actively used a seperate IP address than the machine it is running on? -:suss:Matt Newman / Windows XP Activist:suss: -Sonork ID: 100.11179
Could you Would you with a goat? - Dr Suess -
I want to create a program that has it's own IP address that it gets via a standard DHCP server. My question is how would I go about creating a program that retrieve and actively used a seperate IP address than the machine it is running on? -:suss:Matt Newman / Windows XP Activist:suss: -Sonork ID: 100.11179
Could you Would you with a goat? - Dr SuessIf my memory doesn't completely fail me, DHCP IP's are handed out on a per-MAC basis. That is, if you already have been given an IP for the NIC at hand you can't be given another one while the previous lease is active. If you on the other hand have a static IP (and there is no DHCP-client running on that machine for that NIC) you could possibly create your own DHCP client to request an IP from the DHCP server. Perhaps it is better to use ports after all... :-)
-
If my memory doesn't completely fail me, DHCP IP's are handed out on a per-MAC basis. That is, if you already have been given an IP for the NIC at hand you can't be given another one while the previous lease is active. If you on the other hand have a static IP (and there is no DHCP-client running on that machine for that NIC) you could possibly create your own DHCP client to request an IP from the DHCP server. Perhaps it is better to use ports after all... :-)
My thinking was that it would be a great firwall tactic route all unused ports to a dummy IP that just drops them. Oh well thanks for help though :) -:suss:Matt Newman / Windows XP Activist:suss: -Sonork ID: 100.11179
Could you Would you with a goat? - Dr Suess -
My thinking was that it would be a great firwall tactic route all unused ports to a dummy IP that just drops them. Oh well thanks for help though :) -:suss:Matt Newman / Windows XP Activist:suss: -Sonork ID: 100.11179
Could you Would you with a goat? - Dr Suess****Matt Newman wrote: My thinking was that it would be a great firwall tactic route all unused ports to a dummy IP that just drops them. ??? Doesn't all firewalls have the option to just drop any traffic on a specific port? You might find it more trouble and more costly than it's wort trying to do this using Windows (any version, not just XP). Windows (some might say even Microsoft itself) is really not suited for these tasks. Try getting you hands on an old 486 or something with two NIC's and then install some *BSD or GNU/Linux.
-
****Matt Newman wrote: My thinking was that it would be a great firwall tactic route all unused ports to a dummy IP that just drops them. ??? Doesn't all firewalls have the option to just drop any traffic on a specific port? You might find it more trouble and more costly than it's wort trying to do this using Windows (any version, not just XP). Windows (some might say even Microsoft itself) is really not suited for these tasks. Try getting you hands on an old 486 or something with two NIC's and then install some *BSD or GNU/Linux.
I already have a good firewall but I was just looking for a little pet project to play around with. :) -:suss:Matt Newman / Windows XP Activist:suss: -Sonork ID: 100.11179
Could you Would you with a goat? - Dr Suess