Getting the IP address of the server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Man4ish
    New Member
    • Mar 2008
    • 151

    #1

    Getting the IP address of the server

    Hi,
    Can anyone tell me how can i print the name of my local Dell server(like 192.168.5.12) using C++ in my program.

    Manish Gupta
  • Flugeldorph
    New Member
    • Oct 2008
    • 11

    #2
    Gupta,

    Check out: http://msdn.microsoft. com/en-us/library/system.net.ipho stentry.hostnam e.aspx

    Larry

    Comment

    Working...