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

  • SEARCH
  • Home
  • 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 3674198
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:49:33+00:00 2026-05-19T02:49:33+00:00

I am trying to get more information about what is going on when I

  • 0

I am trying to get more information about what is going on when I connect to a website at a lower level than what HttpWebRequest and HttpWebResponse gives me. I am using C#.

I would like to be able to see information about the dns lookup and the time it took to establish a connection (if a new connection was established). HttpWebRequest and HttpWebResponse work at a higher level than this and I want to ask if there is a way of getting the underlying TcpClient object (or whatever low level object they use).

If it is not possible, then is there a way to grab and manipulate a list of the connections that .net is maintaining without getting it through HttpWebRequest or HttpWebResponse?

I can’t change the application I am working on to use TcpClient because it would be too time consuming to implement all the http stuff reliably.

  • 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-19T02:49:34+00:00Added an answer on May 19, 2026 at 2:49 am

    The best that I can get you is to create an app.config file with the following information:

    <?xml version="1.0" encoding="UTF-8" ?>
    <configuration>
        <system.diagnostics>
            <trace autoflush="true" />
                <sources>
                    <source name="System.Net" maxdatasize="1024">
                        <listeners>
                            <add name="MyTraceFile"/>
                        </listeners>
                    </source>
                  <source name="System.Net.Sockets" maxdatasize="1024">
                        <listeners>
                            <add name="MyTraceFile"/>
                        </listeners>
                    </source>  
               </sources>
    
    
                <sharedListeners>
                    <add
                      name="MyTraceFile"
                      type="System.Diagnostics.TextWriterTraceListener"
                      initializeData="System.Net.trace.log"
                    />
                </sharedListeners>
                <switches>
                    <add name="System.Net" value="Verbose" />
                  <add name="System.Net.Sockets" value="Verbose" />
                </switches>
        </system.diagnostics>
    </configuration>
    

    This will enable tracing and will kick out a log file named “System.Net.trace.log” in your app folder. You aren’t going to get all of the information that you’re looking for and its not easily consumable while the app is running but at least you don’t need to have a third-party program running. Its not documented too much but there’s some information out there at least.

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

Sidebar

Related Questions

Trying to get more than just the stock information at the current time period,
I'm calculating pi using a long winded formula. I'm trying to get more familiar
I'm trying to get an Excel function to return more arguments than are passed
I'm trying to find more information about how nHibernate decides how to batch multiple
I'm just trying to get more into stl semantics, and converting old loops over
I am trying to get more adept and my C programming and I was
i'm trying to get more info in the nimbuzz protocol, and possibly find any
I am trying to get a list together of tools/libraries that make me more
I am trying get all html links within a string and replace them using
I am trying get all html links within a string and replace them using

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.