CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Socket

  1. #1
    Join Date
    Nov 1999
    Location
    INDIA
    Posts
    93

    Socket

    How to open a socket from an applet ? What port i should use ? I want to write a chat applet, which communicates with chat server.
    Thanx for all your replies !

    :-) Parshwanath

  2. #2
    Join Date
    Apr 2000
    Location
    India (Gujarat)
    Posts
    12

    Re: Socket

    Hi,

    In general you can not open a socket from an Applet to other server except from where the applet is downloaded. It throws a security exception.

    You need to get the applet signed by keytool and jarsigner and make it trusted.

    port number to use is the port number on which the server listens. you need know the port number.

    bye


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