Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to write a small gateway server where it has three network interface cards (say A,B,C)latched on to three different network segments. This server will act as the gateway server. I want to do the following;

1. to read the Ethernet frame headers and the IP packet headers of the datagrams / packets forwarded to network interface card "A"

2. to forward / regenerate the same packet in chosen interface card (i.e. either B or C) when the packets meet certain parameters required by the respective interfaces B or C.

I want to implement this on Windows platform, so please guide me on how to achieve the above two things using Java raw sockets (or any other).

Thank you very much well in advance for your help and time...i really appreciate it.

Cheers

What I have tried:

I tried to implement this using Raw Socket programing...but couldn't find proper way
Posted
Comments
Richard MacCutchan 23-Apr-16 4:59am    
I do not think Java is the language to use for such an application. If you wish to use low level network programming then you will be better using C/C++.
Ganamida 23-Apr-16 9:40am    
Thanks Richard... Yes, I could not get anything across with Java.
Please let me know any specific materials or direction for me to start with.
Cheers
Michael_Davies 23-Apr-16 5:16am    
What are the specified requirements. Windows can bridge connections, open the network adapters in Network shift-click/ctrl-click the adapters you want to bridge, right-click and select Bridge.
Sergey Alexandrovich Kryukov 23-Apr-16 7:08am    
5! :-)
—SA
Ganamida 23-Apr-16 9:44am    
Thanks Michael....well, my requirement is different than just bridging. I want to develop a server with a lot more other functionalities based on the different values that i m hoping to defined in optional header fields. It is something i am so keen in learning as well. BTW cheers for the reply...:D

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