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. How to get actual IP address of the computer?

How to get actual IP address of the computer?

Scheduled Pinned Locked Moved C#
questioncsharpsysadminasp-net
3 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.
  • M Offline
    M Offline
    MAP Tiger
    wrote on last edited by
    #1

    Hi I have successfully applied the networking logic using TCP and UDP protocols both while on internal LAN scenario. Now how can I connect to the computer on network i.e. send a text message to another computer on the internet. The target computer has the local ip address of 10.10.20.200 which is assigned from a local LAN server which is connected to the internet (you can think of a router too) now I dont know how to access that computer where a server is residing which will receive the message sent from the client. Hope I was clear to illustrate the scenario and my question. Regards,

    Mujtaba Panjwani Tiger Softwares Software Designer and Developer VB.NET, C#, ASP.NET, VFP

    S 1 Reply Last reply
    0
    • M MAP Tiger

      Hi I have successfully applied the networking logic using TCP and UDP protocols both while on internal LAN scenario. Now how can I connect to the computer on network i.e. send a text message to another computer on the internet. The target computer has the local ip address of 10.10.20.200 which is assigned from a local LAN server which is connected to the internet (you can think of a router too) now I dont know how to access that computer where a server is residing which will receive the message sent from the client. Hope I was clear to illustrate the scenario and my question. Regards,

      Mujtaba Panjwani Tiger Softwares Software Designer and Developer VB.NET, C#, ASP.NET, VFP

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

      You need to look up NAT[^]

      Regards Senthil [MVP - Visual C#] _____________________________ My Home Page |My Blog | My Articles | My Flickr | WinMacro

      M 1 Reply Last reply
      0
      • S S Senthil Kumar

        You need to look up NAT[^]

        Regards Senthil [MVP - Visual C#] _____________________________ My Home Page |My Blog | My Articles | My Flickr | WinMacro

        M Offline
        M Offline
        MAP Tiger
        wrote on last edited by
        #3

        Hi Thanks for the reply. Can you please give me an example of how to discover NAT for the exact computer, I was thinking of a way to make the program work exactly as yahoo or msn messengers does i.e. sending a message to other computer or sending a file etc. I will be very thankful for your help. Regards,

        Mujtaba Panjwani Tiger Softwares Software Designer and Developer VB.NET, C#, ASP.NET, VFP

        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