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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Networking

Networking

Scheduled Pinned Locked Moved C#
questionsysadmin
5 Posts 3 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.
  • A Offline
    A Offline
    Alper Camel
    wrote on last edited by
    #1

    I wrote a server that listens a port, when a client connects to my port, can I get clients IP? clients just connects to my port, they just send ascii data. how can i retrieve their IP.. Thanks..

    A 1 Reply Last reply
    0
    • A Alper Camel

      I wrote a server that listens a port, when a client connects to my port, can I get clients IP? clients just connects to my port, they just send ascii data. how can i retrieve their IP.. Thanks..

      A Offline
      A Offline
      Alex Korchemniy
      wrote on last edited by
      #2

      Fairly simple. You need to look into RemoteEndPoint[^] Alex Korchemniy

      A 1 Reply Last reply
      0
      • A Alex Korchemniy

        Fairly simple. You need to look into RemoteEndPoint[^] Alex Korchemniy

        A Offline
        A Offline
        Alper Camel
        wrote on last edited by
        #3

        Ok but, remoteEndPoint gives me where to connect, The Problem is; There is a Server which is justs listens a port, and a unknown client connects to port. Server wants to detect its IP, How this Could be possible? Thank you very much for your interest!! Alper

        S 1 Reply Last reply
        0
        • A Alper Camel

          Ok but, remoteEndPoint gives me where to connect, The Problem is; There is a Server which is justs listens a port, and a unknown client connects to port. Server wants to detect its IP, How this Could be possible? Thank you very much for your interest!! Alper

          S Offline
          S Offline
          S Senthil Kumar
          wrote on last edited by
          #4

          Your server would surely have some sort of an Accept() method that returns a Socket? You just use that Socket's RemoteEndPoint property Regards Senthil _____________________________ My Blog | My Articles | WinMacro

          A 1 Reply Last reply
          0
          • S S Senthil Kumar

            Your server would surely have some sort of an Accept() method that returns a Socket? You just use that Socket's RemoteEndPoint property Regards Senthil _____________________________ My Blog | My Articles | WinMacro

            A Offline
            A Offline
            Alper Camel
            wrote on last edited by
            #5

            Got it! Thank u indeed! Best Regards. Alper

            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