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 8978175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:32:47+00:00 2026-06-15T19:32:47+00:00

I need to get the IP address of the client calling a function over

  • 0

I need to get the IP address of the client calling a function over a .NET Remoting TcpChannel. I found this post which seems to be exactly what I need, however, I am not sure how to implement this using the app.config file, which is a requirement for my project. I cannot find any good documentation on MSDN on how exactly the app.config file works in this case, likely because .NET Remoting is a legacy technology. Is there anybody who knows how I can implement the configuration code in the second section of Kev’s answer using the app.config file?

Many thanks in advance for any help with this.

  • 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-06-15T19:32:49+00:00Added an answer on June 15, 2026 at 7:32 pm

    This answer worked wonders for me. I was able to implement this in the app.config file as follows:

    <configuration>
       <system.runtime.remoting>
          <application>
             <channels>
                <channel ref="tcp" port="1234">
                   <serverProviders>
                      <provider ref="clientinfo" />
                      <formatter ref="binary" />
                   </serverProviders>
                </channel>
             </channels>
          </application>
          <channelSinkProviders>
             <serverProviders>
                <provider
                   id="clientinfo"
                   type="MyNameSpace.ClientInfoServerSinkProvider, MyAssemblyName" />
             </serverProviders>
          </channelSinkProviders>
       </system.runtime.remoting>
    <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
    

    I added the entire serverProviders element to the tcp channel, and added the entire channelSinkProviders element you see. Everything else was already there as an existing configuration we already had.

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

Sidebar

Related Questions

I need to get the server's IP address so that this can be sent
Found this which may explain some of my problems - MSDN Post I have
have downloaded page by webbrowser and need to get mail address. But it is
i need grab to internet explorer address bar. how to get address bar url
i need grab to firefox address bar. how to get address bar url for
I want to get the thread's start address with NtQueryInformationThread , but I need
I have a PHP-variable called $go_Adress which contains the adress I need to get
I need get the id of an images which is place inside a datatemplate..
I have linq request. I need get item.Title in select. how do this? var
I need to get the name and email address from a forwarded email where

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.