Click here to Skip to main content
15,877,967 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Hello!
I have a PC with two netowrk cards (NIC) connected in two diferents sub net, how can i forward the paquets using winsock?

with best regards,
Vunza.
Posted

Packet forwarding may happen at layer 2 (or "bridging"), 3 (or "routing") or 4 (NAT) or above, by proxying an application protocol.

Bridging and Routing are networking functionalities that are part of the OS (either as TCP/IP cpnfiguration: look for IP-Forwarding or a NIC configuration - look for "bridging").

Note that IP forwarding enabled is necessary for routing, but it is not enough: nodes on the sides of the "router" must be aware of its existence, may be through a routing protocol, or may be via static configuration (look for the "route add" command).
 
Share this answer
 
well I dont get your question properly.. but I am doing packet fwding in diff subnet on same system using simply bridging. jst try to bridge both nic cards and then try original code you have... it should work..
you can use this link for bridging..
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/hnw_bridge_install.mspx?mfr=true[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900