We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to make a C++ program that monitors incomming network connections?

I am trying to make something like a firewall but it isnt a firewall it is just suppose to see all the incomming and outgoing connections of each port. And put the IP address and port into a .txt file. Basicly creating a log of incomming and outgoing connections.

Nothing fancy, just that.

How do i do this?

3
Contributors
2
Replies
8 Hours
Discussion Span
8 Months Ago
Last Updated
6
Views
Question
Answered
MasterHacker110
Junior Poster
181 posts since Dec 2011
Reputation Points: 6
Solved Threads: 0
Skill Endorsements: 0

Like Wireshark. It's an open-source project, so feel free to check out its source code and learn from it.

mike_2000_17
21st Century Viking
Moderator
3,143 posts since Jul 2010
Reputation Points: 2,062
Solved Threads: 625
Skill Endorsements: 41

While Wireshark is a great tool I, think it is a little hard to digest for something as simple as grabbing packets. It is probably easier to concentrate on the underlying libpcap to get started and move up from there.

L7Sqr
Practically a Posting Shark
851 posts since Feb 2011
Reputation Points: 253
Solved Threads: 155
Skill Endorsements: 7
Question Answered as of 1 Month Ago by mike_2000_17 and L7Sqr

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0676 seconds using 2.66MB