Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6565107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:03:08+00:00 2026-05-25T14:03:08+00:00

I am trying to write an application that sends raw sockets in C#. I

  • 0

I am trying to write an application that sends raw sockets in C#. I do not have a lot of experience in C/C++, so would prefer C#. I have found several options for raw sockets in C#, but none allow me to set the flags such as ACK, SYN, PSH, FIN, etc. Any ideas on if this can be accomplished in C#?

Any tips would be much appreciated.

Update:
I am trying to write a tool to test a firewall, I would like to send out of state packets, packets with different flags. I am using Win 2008, and as far as I read, I can do raw sockets on it. I will resort to C/C++ if needed, and so far that is what it looks like.

Further Update:
SharpPcap looks good, it seems v4.0 does not have source, only 3.5 does. I am going to try and muddle through it, as the documentation is not complete either. Has anyone used it before?

Final Edit:
SharpPcap looks great! It is doing what I need!! I will post a follow up question, as I am not a .NET guru, it is capturing well, I just can’t send a packet from in the capture delegate portion.

Thanks everyone!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:03:09+00:00Added an answer on May 25, 2026 at 2:03 pm

    Check out SharpPcap.

    According to the description:

    SharpPcap is a cross-platform packet capture framework for the .NET environment, based on the famous pcap / WinPcap libraries. It provides an API for capturing, injecting, analyzing and building packets using any .NET language such as C# and VB.NET.

    It internally uses the WinPcap driver, so it will allow you to build raw packets with your own IP/TCP headers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write an application that uses java.net.Socket. I have also written
I want to write an application that sends html formatted email. I have the
I'm trying to write an application that converts 48 bit-per-pixel PNG files to a
I'm trying to write an application that responds whenever the Shift key is pressed,
I am trying to write an application that performs operations on a grid of
Hi I am trying to write an application that will play morse code. I
I'm trying to write an application (winforms) that can demonstrate how two oscillating colors
I'm trying to write a javascript application that loads data from the openstreetmap API
I'm trying to write a silverlight application that takes in InitParams and then uses
I'm trying to write a small application that needs to use the clipboard for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.