CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    47

    Question about IPs

    I am trying to set up a winsock connection to another computer - it is over an NT network - I was wondering how do I find out what the IP address of the computers are???

    Thanks


  2. #2
    Join Date
    May 1999
    Posts
    10

    Re: Question about IPs

    If you want to know what the IP address of an NT workstation is type ipconfig at a DOS prompt, or winipcfg for Win95 computers. Remember that if you are using DHCP on your network for IP addresses these IP addresses may only be temporary, if you can use actual names and let the WINS translate them to IP addresses for you.


  3. #3
    Join Date
    Apr 1999
    Posts
    47

    Re: Question about IPs

    Do you know how I can find out what the local port is as well.


  4. #4
    Join Date
    May 1999
    Posts
    10

    Re: Question about IPs

    If you are using sockets to try and connect between two computers there is no port you have to use you can pick your own. There is an RFC somewhere that says what ports are reserved but you should be okay with something like 4321.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured