Results 1 to 7 of 7

Thread: about chat demo

  1. #1
    wangjun is offline Registered User
    Name: wangjun java
    Organization: victop
    Project: ERP Integration
    Join Date
    Nov 2010
    Location
    China
    Posts
    11

    about chat demo

    hi,
    when I change the port 4064 to 7001 in the config file config.glacier2router(chat demo config file), then I cought this exception:
    !! 12/19/10 04:09:30.561 glacier2router: error: service caught unhandled excepti
    on:
    Network.cpp:1104: Ice::SocketException:
    socket exception: WSAEADDRINUSE
    why ?
    Attached Images Attached Images

  2. #2
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    socket exception: WSAEADDRINUSE
    That exception indicates that the address/port is already in use by other application.

    See the documentation of sockets error code from Microsoft:
    Windows Sockets Error Codes (Windows)

  3. #3
    wangjun is offline Registered User
    Name: wangjun java
    Organization: victop
    Project: ERP Integration
    Join Date
    Nov 2010
    Location
    China
    Posts
    11
    Quote Originally Posted by xdm View Post
    That exception indicates that the address/port is already in use by other application.

    See the documentation of sockets error code from Microsoft:
    Windows Sockets Error Codes (Windows)
    hi, xdm, thanks for your help.
    I try to change the port to another any number, but failed.
    It seems that the port must use 4064,
    why?
    so it's not the address/port is already in use by other application.

  4. #4
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    I try to change the port to another any number, but failed.
    Did you get the same exception with other port number? do you have a firewall running in that computer, if so try to disable the firewall to see if that helps.

    You can use netstat.exe to found if another process is listen on a port, see here
    How to determine which program uses or blocks specific transmission control protocol ports in Windows

    It seems that the port must use 4064, why?
    glacier2router can bind to any port, given that the port is not in use, the user has enough permissions and there isn't a firewall restriction.

    Note that if you change the port in "config.glacier2router", you will also need to update the push clients to connect to the new port.

  5. #5
    wangjun is offline Registered User
    Name: wangjun java
    Organization: victop
    Project: ERP Integration
    Join Date
    Nov 2010
    Location
    China
    Posts
    11
    [QUOTE=xdm;22640]Did you get the same exception with other port number? do you have a firewall running in that computer, if so try to disable the firewall to see if that helps.

    hi, xdm, Thanks a lot.
    yes, I got the same exception with any other port number, but 4064.
    I think the problem may be SSL.

    Glacier2.Client.Endpoints=ssl -p 7001 -t 10000 -h 127.0.0.1:tcp -p 7001 -t 10000 -h 127.0.0.1

    if I don't use ssl, the port number can use any other number.
    why?

  6. #6
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Code:
    Glacier2.Client.Endpoints=ssl -p 7001 -t 10000 -h 127.0.0.1:tcp -p 7001 -t 10000 -h 127.0.0.1
    You cannot use the same port for SSL and TCP, you need two use different ports, for example try.

    Code:
    Glacier2.Client.Endpoints=ssl -p 7001 -t 10000 -h 127.0.0.1:tcp -p 4502 -t 10000 -h 127.0.0.1
    Note that if you want to use the Silverlight push client, the tcp port must be in the range 4502-4534, see the section ''Basics of the Security Policy System", in Network Security Access Restrictions in Silverlight

  7. #7
    wangjun is offline Registered User
    Name: wangjun java
    Organization: victop
    Project: ERP Integration
    Join Date
    Nov 2010
    Location
    China
    Posts
    11
    Quote Originally Posted by xdm View Post
    Code:
    Glacier2.Client.Endpoints=ssl -p 7001 -t 10000 -h 127.0.0.1:tcp -p 7001 -t 10000 -h 127.0.0.1
    You cannot use the same port for SSL and TCP, you need two use different ports, for example try.

    Code:
    Glacier2.Client.Endpoints=ssl -p 7001 -t 10000 -h 127.0.0.1:tcp -p 4502 -t 10000 -h 127.0.0.1
    Note that if you want to use the Silverlight push client, the tcp port must be in the range 4502-4534, see the section ''Basics of the Security Policy System", in Network Security Access Restrictions in Silverlight
    hi, xdm, thanks a lot,
    Let you laughed at this simple problem, It's ok now.
    I will take care.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Chat Demo Scalability
    By AgentShark in forum Help Center
    Replies: 2
    Last Post: 01-03-2011, 05:20 PM
  2. Chat Demo 1.3.0 released
    By mes in forum Announcements
    Replies: 0
    Last Post: 12-14-2010, 10:57 AM
  3. A errir by building the chat demo
    By gogosap in forum Help Center
    Replies: 27
    Last Post: 02-02-2010, 07:03 PM
  4. Chat Demo 1.1.0 released
    By xdm in forum Announcements
    Replies: 0
    Last Post: 10-02-2008, 01:05 PM
  5. Introducing the Chat Demo
    By mes in forum Announcements
    Replies: 0
    Last Post: 07-15-2008, 02:24 PM

Posting Permissions

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