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. socket programming

socket programming

Scheduled Pinned Locked Moved C#
tutorial
4 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
    AlexPizzano
    wrote on last edited by
    #1

    How to find out ip address of a listening port.

    D N 2 Replies Last reply
    0
    • A AlexPizzano

      How to find out ip address of a listening port.

      D Offline
      D Offline
      DavidBoyd
      wrote on last edited by
      #2

      lol what?

      I know the human being and fish can coexist peacefully. -George Dubya Bush Don't believe me? http://politicalhumor.about.com/library/blbushism-fish.htm

      A 1 Reply Last reply
      0
      • D DavidBoyd

        lol what?

        I know the human being and fish can coexist peacefully. -George Dubya Bush Don't believe me? http://politicalhumor.about.com/library/blbushism-fish.htm

        A Offline
        A Offline
        AlexPizzano
        wrote on last edited by
        #3

        TQ

        1 Reply Last reply
        0
        • A AlexPizzano

          How to find out ip address of a listening port.

          N Offline
          N Offline
          nelsonpaixao
          wrote on last edited by
          #4

          I got this from a chat application here on codeproject, there are other ways. Try to download applications in the site. String GetIP() { String strHostName = Dns.GetHostName(); // Find host by name IPHostEntry iphostentry = Dns.GetHostByName(strHostName); // Grab the first IP addresses String IPStr = ""; foreach (IPAddress ipaddress in iphostentry.AddressList) { IPStr = ipaddress.ToString(); return IPStr; } return IPStr; } Good luck :-D

          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