CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2003
    Location
    India
    Posts
    12

    Code doesn't works under Windows 2000.

    I have created a client-server chat application using Windows Socket(CSocket class). The server just checks for the validation of the message being sent by the clients and forwards it as a broadcast message to all of the clients. The server is first initiated and made to listen on a particular port. Then the clients logg in(no username or passwords justa technical term) and start chatting with the other clients right away.
    It works fine on Windows ME(Win ME and Win 2000 all I have) but doesn't works under Windows 2000.
    It doesn't gives a error message nor it exits abnormally but
    doesn't accepts and listens on any port I don't know why.


    Please help me out of this.

  2. #2
    Join Date
    Oct 2002
    Location
    Singapore
    Posts
    3,128
    May be the port is already used by other application. You can use netstat -a in the command prompt to display all connections and listening ports.

  3. #3
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211
    beside that, are you sure you are not running security application running which blocks the port other then the well known one???

  4. #4
    Join Date
    Sep 2002
    Location
    Belarus - Tirol, Austria
    Posts
    647

    Re: Code doesn't works under Windows 2000.

    Originally posted by sharma_deepak83
    doesn't accepts and listens on any port I don't know why.
    Does the server part bind the specified port successfuly? What port do U try to bind? Possible, it's used already or belongs to the priviledged range.
    As have been pointed before, check if U can see the opened by your application port with netstat -at?
    Are the any kind of firewall running on this machine?
    "UNIX is simple; it just takes a genius to understand its simplicity!"

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