Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. WCF Get Endpoint from my Client

WCF Get Endpoint from my Client

Scheduled Pinned Locked Moved C#
sysadmincsharpwcfhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    softwarejaeger
    wrote on last edited by
    #1

    Hello, i'm writing a WCF Application and need to know, which IPAddress/Port i use to communicate with the WCF-Service. I don't want to know on which Port i'm connected on the Server (RemoteEndpointMessageProperty), i want to know which IP/Port my network card uses to connect to the Server. I hope you can help me. Thank you :-)

    N 1 Reply Last reply
    0
    • S softwarejaeger

      Hello, i'm writing a WCF Application and need to know, which IPAddress/Port i use to communicate with the WCF-Service. I don't want to know on which Port i'm connected on the Server (RemoteEndpointMessageProperty), i want to know which IP/Port my network card uses to connect to the Server. I hope you can help me. Thank you :-)

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      Assuming you are using a DuplexClientBase<> derived class, you can use client.Endpoint.Address where client is an instance of the derived class.

      Regards, Nish


      My technology blog: voidnish.wordpress.com Code Project Forums : New Posts Monitor This application monitors for new posts in the Code Project forums.

      S 2 Replies Last reply
      0
      • N Nish Nishant

        Assuming you are using a DuplexClientBase<> derived class, you can use client.Endpoint.Address where client is an instance of the derived class.

        Regards, Nish


        My technology blog: voidnish.wordpress.com Code Project Forums : New Posts Monitor This application monitors for new posts in the Code Project forums.

        S Offline
        S Offline
        softwarejaeger
        wrote on last edited by
        #3

        Hello, thank you. But i use the DuplexChannelFactory and there i have a client.Endpoint.Address, but i get back the Address from the service. So what to do now? Thank you

        1 Reply Last reply
        0
        • N Nish Nishant

          Assuming you are using a DuplexClientBase<> derived class, you can use client.Endpoint.Address where client is an instance of the derived class.

          Regards, Nish


          My technology blog: voidnish.wordpress.com Code Project Forums : New Posts Monitor This application monitors for new posts in the Code Project forums.

          S Offline
          S Offline
          softwarejaeger
          wrote on last edited by
          #4

          I haven't any solution yet... I tried this with "OperationContext.Current.OutgoingMessageHeaders.From" on local side, but there's no success. :confused: Is it so difficult to get the IP Address from where i send a message? Or if it's a incoming Callback-Message to get the Endpoint on which the Message came in?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups