IP v6 support

Discussion in 'Web Call Server 4' started by Thomas, Mar 18, 2015.

  1. Thomas

    Thomas New Member

    Hi,
    is there a way to admin wcs4 to support additionally IPv6 network (dual mode), i.e. to listen also on IPv6 address?
    BR, Thomas
  2. Max

    Max Administrator Staff Member

    We never tested it but it should work for latest versions 620-1153.
    Server Settings:
    1. conf/server.properties
    Code:
    ws.address =:::
    wss.address =:::
    rtmfp.address =:::
    rtsp.address =:::
    http.address =:::
    https.address =:::
    
    Here we listen all non-SIP sockets as IPv6.
    2. bin/setenv.sh
    Remove
    Code:
    -Djava.net.preferIPv4Stack=true
    3. flashphoner.properties
    Code:
    # ip will be used in SIP SDP
    ip = myipv6host.com
    # SIP and RTP traffic will be bound on this address
    ip_local = ::1
    # rtc_ip will be used in WebRTC SDP
    rtc_ip = myipv6host.com
    # ICE, SRTP WebRTC datagram sockets will be bound on this address
    rtc_ip_local = ::1
    
    Client Settings
    1. examples/flashphoner.xml
    Code:
    <url_ws_server>ws://myipv6host.com:8080</url_ws_server>
    <url_flash_server>rtmfp://myipv6host.com:1935</url_flash_server>
    
    Here myipv6host.com should be correctly resolved to WCS host IPv6 address.
    Finally all these settings should allow to switch WCS to IPv6.
  3. Max

    Max Administrator Staff Member

    Here is netstat sample:
    IPv6-binding-in-WCS4.png

Share This Page