Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Networking   »   two network cards

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old May 6, 2008, 03:22 AM
rajesh_avittam
New Member
rajesh_avittam is offline
 
Join Date: May 2008
Posts: 2
rajesh_avittam See this member's comment history on his/her Profile page.
two network cards

I have two network cards with different ip addresses in my pc. one is connected to internet and the other one is connected to internal network using a switch. I have created a program that will try to connect a device connected to the internal network switch. When i run the program it tries to connect the device through the internet and fails. After dissabling the internet card the program is able to connect to the device through the internal switch. i want both the networks active. how can i solve this problem. i am using windows 2000.

Reply With Quote
 
     

Answers
 
 
Old May 6, 2008, 04:57 AM   #2  
retsoksirhc
Senior Member
retsoksirhc is offline
 
retsoksirhc's Avatar
 
Join Date: Mar 2004
Location: Michigan
Posts: 742
retsoksirhc See this member's comment history on his/her Profile page.
Send a message via AIM to retsoksirhc
The routing table is telling it which card (interface) to go to for that network.

I would try changing the IP addresses on your home network, if you're using DHCP. It shouldn't be too hard to just change the IP range...that would make sure it's not a conflict in the routing table, and mean you just need to add an entry.

If that doesn't work, reply here with what you see when you do route print from the command line, and what the IP addresses are for the things you're connecting to, and we'll get it figured out.

If you want to make it easier, you can dump "route print" to a file, like this:
route print >> c:\route.txt

And then just copy/paste.
  Reply With Quote
 
     
 
 
Old May 6, 2008, 12:21 PM   #3  
aboleth
Junior Member
aboleth is offline
 
Join Date: Dec 2007
Posts: 48
aboleth See this member's comment history on his/her Profile page.
Just to elaborate a bit.

Your compute is connected to 2 networks. Lets say network a is 10.0.0.0 255.255.255.0 with a default route of 10.0.0.1 and network b is 192.168.0.0 255.255.255.0 with a default route of 192.168.0.1.

The question here, is what network is the program configured to use. Providing the IP's and default routes are set up correctly, the traffic for the 10.0.0.0 network and the 192.168.0.0 network will route correctly. So, if a request comes from 10.0.0.2 it will find the default route of 10.0.0.1 and forward the traffic there, 192.168.0.X would route to 192.168.0.1 respectively. Your problem most likely has nothing to do with the ip configuration, and a lot more to do with what IP the program claims to be originating from. Hopefully the program has an option to change this, as it's using the wrong network.

Hope this helps,
Nick
  Reply With Quote
 
     
 
 
Old May 7, 2008, 07:06 AM   #4  
phoe khwar
New Member
phoe khwar is offline
 
Join Date: May 2008
Posts: 1
phoe khwar See this member's comment history on his/her Profile page.
hi ... i have NIC 2 card .... i want to use one is for internet and one for internal... how can i use it...my internal client want to use internet. how can i share my internet ... (cause cyber owner told me to use 1 client for internet..) if i will use switch ... ower will know if he monitoring .... .. how can i share my internet ...
  Reply With Quote
 
     
 
 
Old May 7, 2008, 09:22 AM   #5  
rajesh_avittam
New Member
rajesh_avittam is offline
 
Join Date: May 2008
Posts: 2
rajesh_avittam See this member's comment history on his/her Profile page.
I am not using DHCP. The two network is like this. Internet starts with 10... and the internal network is 192.168.0.XXX. I have created the program which tries to connect to a device connected to the internal network. The device IP is 192.168.0.75 and my PC's internal IP is 192.168.0.19. I am not using routers for internal network ( it is connected via switch/hub ). And my program is trying to connect the device using VC++ with WINSOCK library. Its a client program trying to connect the device with IP 192.168.0.75. The gateways are entred correctly. When the internet-network-card is dissabled the program is able to connect to the device. But if the internet-network-card is enabled then the program fails to connect to the device. But a PING to the device is working fine on both the conditions. I want both the networks active and want to connect to the device while the internet is active. Any solution....
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
two network cards velaphi Networking 2 Apr 8, 2008 09:33 AM
1 PC 2 Network Cards 2 Internet Connections jk100 Networking 7 Aug 25, 2007 02:23 PM
Collision detection circuitry in the IEEE 802.3 network cards memory Networking 2 May 7, 2007 07:46 PM
Two Network cards in One computer accessing two networks.. Jubei Networking 2 Apr 15, 2005 07:04 AM
shot gunning network cards thetachi464 Networking 17 Mar 16, 2005 02:59 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 10:59 AM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.