Forwarding messages server -- clients

hey guys im still having trouble with my server/client application. I have created a TCP connection orientated client/server application which allows multiple clients to be connected to the one server. my problem is, is that i want the server to "forward" the messages recieved by one client to all the others and i am having trouble doing this.. would a hashtable be my best option?!?!?
Thanking you guys in advance.. dave-o

I have your same problem.
One solution I though was to keep track of the number of clients and then fordward to all of them except to the one which send the data.
Would be nice if some one give us more ideas.

Similar Messages

  • Client PRD01_PRD_00 is not known to the message server

    Hi,
    I get a lot of user disconnects (SM21) and update deactivation (SM13). From the system log I get the following error. Are they related? How can I fix this?
    Client PRD01_PRD_00 is not known to the message server     
    Client PRD02_PRD_00 is not known to the message server     
    Transaction Canceled BT 510 ( )                                   
    Perform rollback                                                  
    Operating system call recv failed (error no. 10054)               
    Connection to user 24070 (BUCHANR ), terminal 112 (MB02159PC ) lost
    Please advise

    Hi Ferrari,
    I have the same problem here.
    Can you tell me how solution do you apply?
    Best regards,
    Marcelo Moraes

  • Client is not known to the message server

    Hi,
    I've search SAP Notes but could not find any answer to my problem. I am running 4.7 (620) on Ora 9i, Windows 2000 Advanced Server and kernel 155. We have 2 application servers and one DB server.
    I get an error message every 5 minutes in the system log reading:-
    Client PRD01PRD_00 is not known to the message server
    Client PRD02PRD_00 is not known to the message server
    This message translates in dev_w0 as follows:-
    ERROR => ThCheckReqInfo: message send/receive failed [thxxhead.c 16132]
    ERROR => ThSysAdmMsg: ThAdmSend [thxxab.c   6903]
    Please advise on a solution.

    Dear Ferrandi,
    this is an attempt to send an ADM message to a given instance. The problem is that the message server is not aware of such an instance. If you say that this happens every 5 minutes, it will be some kind of automatic job trying to speak to an instance not available in the system. I would suggest that you reset the trace files, then switch the trace level of the first three dialog work processes to 2 (components taskhandler, abap proc., and scrn. proc.) and then set the profile parameters
    rdisp/TRACE_LOGGING = on, 10m
    rdisp/TRACE_PATTERN_0 = ERROR => ThSysAdmMesg: ThAdmSend
    so that tracing will stop as soon as the problem happens again. Do post the work process trace file that has the error message here or send it via mail to me so that I can check which report is being run.
    Best Regards,
    Tim

  • Does JMS support reliable messaging (store-and-forward) for app clients?

    I need to write an enterprise application client (launched with Java web start or packaged with a tool like Sun's package-appclient) that can send messages reliably from Linux to Windows. JMS seems like the obvious solution, so I deployed an EAR file with an MDB and an application client on a Windows machine (running SJSAS 9). I was able to download the client jar file onto Linux and send JMS messages successfully. However, if the Windows machine is not available, the Linux client immediately throws exceptions and fails. Are there any JMS providers that provide a store-and-forward mechanism for enterprise clients, so that if the remote server is not available immediately, messages are delivered later? (Note that the client can't be a servlet or other server-managed component.)
    I'd prefer an open-source solution, but this requirement has an extremely high priority for my customer, so I'll use a commercial product if necessary. And if there's something other than JMS that works, that would be fine. (In my case, the messages on the remote side ultimately go to a .NET service, so WS-ReliableMessaging would be ideal, but it looks WS-RM won't be integrated into .NET until Vista, and the current WS-RM implementation is a beta, etc., etc.)
    Thanks,
    Mike

    You could use Apache ActiveMQ
    http://incubator.apache.org/activemq/
    which supports embedded brokers inside each JVM which can be networked together in a store-forward mechanism so that each application keeps working and store-forwarding messages.
    http://incubator.apache.org/activemq/networks-of-brokers.html
    or you can use failover transport to handle automatic reconnection...
    http://incubator.apache.org/activemq/how-can-i-support-auto-reconnection.html
    If you need to communicate with some .Net you can use the NMS - the .Net Messaging API which has a client for ActiveMQ as well...
    http://incubator.apache.org/activemq/nms.html
    James
    http://logicblaze.com/
    Open Source SOA

  • Client x.x.x.x is not known to the message server

    Hi,
    One of my customers is getting strange messages in the Development system of their SRM landscape. The messages are:
    Client x.x.x.x is not known to the message server
    Where x.x.x.x is the IP address of a workstation. The messages occur a few times per day, and they are always grouped. There are always about 5 identical messages with the same IP, but the next occurence may be from a different IP. Also, the QAS and PRD systems are configured identically (as far as I know) but they do not have this message.
    I do not understand why this message occurs. The "clients" of a message server are it's application servers, not the connected workstations. The users/developers are not doing anything special at this time. There are no dumps, the messages only appear in ST22.
    At another forum it was suggested that the problem may be with the printers in SPAD (there was one type F printer which I chaged to type G and eventually removed, but no change) or with the operation modes. I was also asked to check the logon groups. Everything seems normal there too.
    Does anyone have any idea where to look?
    Thanks
    Mischa

    Check this SAP NOTE ...The R/3 System relies on the operation system to resolve names and IP-addresses of other hosts (for example, host names of other Application Servers in the same R/3 system or IP-addresses of client computers that access the system).
    Try adding the host entries of R/3 system(Messager server) on Client computer and check if it works.
    Note 124562 - Hostname resolution problems (DNS timeouts)

  • SSL VPN message "This (client) machine does not have the web access privilege."

    Hello!
    I am trying to configure the SSL VPN (WebVPN) and I am almost done but when clicking on the URL's I configured in the bookmarks, I get the message "This (client) machine does not have the web access privilege. Please contact your SSLVPN provider for assistance." I looked through the many tutorials and guides in existence and none talks about such error and the fix for it. In fact, if I search the net for this error message I get only one match, in the Cisco website, where is say that "The client computer does not meet the security criteria of having web access functionality through the SSL VPN gateway." and as fix it gave this tip "Check the URL to the gateway or contact the administrator if it persists." So, nothing on the website about what this issue is and how to fix it. I will provide my IOS configuration and hopefully someone will spot the issue. Here it goes:
    version 12.4
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname R1
    boot-start-marker
    boot-end-marker
    logging message-counter syslog
    no logging buffered
    enable secret 5 $1$1LLX$u7aTc8XfNqPZhPVGwEF/J0
    enable password xxxxxxxx
    aaa new-model
    aaa authentication login userAuthen local
    aaa authentication login sdm_vpn_xauth_ml_1 local
    aaa authorization network groupauthor local
    aaa session-id common
    crypto pki trustpoint TP-self-signed-1279712955
    enrollment selfsigned
    subject-name cn=IOS-Self-Signed-Certificate-1279712955
    revocation-check none
    rsakeypair TP-self-signed-1279712955
    crypto pki certificate chain TP-self-signed-1279712955
    certificate self-signed 01
      3082023A 308201A3 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
      31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
      69666963 6174652D 31323739 37313239 3535301E 170D3130 30333233 31313030
      33375A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
      4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 32373937
      31323935 3530819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
      8100A8EF 34E3E792 36660498 9801F934 E8A41865 3599EA35 B073AC91 D7A53AF4
      A4390D2F CB3DB2DE 936B28F0 A25F3CE1 6F40FD9E E79096F2 F89620E0 B31A7B34
      649BBA22 AE44CB55 9F38BF0C 2F2770CF 8380C167 C17D760C 380E28E4 FF7D6874
      9EFC310A 2AA60835 F1AA384F CD1A0173 19C98192 EBFBD531 24CB9203 EA9E7D54
      B2C30203 010001A3 62306030 0F060355 1D130101 FF040530 030101FF 300D0603
      551D1104 06300482 02523130 1F060355 1D230418 30168014 0D9D62EC DA77EAF3
      11ABF64D 933633F9 2BA362DC 301D0603 551D0E04 1604140D 9D62ECDA 77EAF311
      ABF64D93 3633F92B A362DC30 0D06092A 864886F7 0D010104 05000381 81006853
      48ED4E3E 5721C653 D9A2547C 36E4F0CB A6764B29 9AFFD30A 1B382C8C C6FDAA55
      265BCF6C 51023F5D 4AF6E177 C76C4560 57DE5259 40DE4254 E79B3E13 ABD0A78D
      7E0B623A 0F2D9C01 E72EF37D 5BAB72FF 65A176A1 E3709758 0229A66B 510F9AA2
      495CBB4B 2CD721A7 D6F6EB43 65538BE6 B45550D7 A80A4504 E529D092 73CD
       quit
    dot11 syslog
    ip source-route
    ip dhcp excluded-address 192.168.0.1 192.168.0.10
    ip dhcp pool myPOOL
       network 192.168.0.0 255.255.255.0
       default-router 192.168.0.1
       dns-server 87.216.1.65 87.216.1.66
    ip cef
    ip name-server 87.216.1.65
    ip name-server 87.216.1.66
    ip ddns update method mydyndnsupdate
    HTTP
      add http://username:[email protected]/nic/update?system=dyndns&hostname=<h>&myip=<a>
    interval maximum 1 0 0 0
    no ipv6 cef
    multilink bundle-name authenticated
    vpdn enable
    vpdn-group pppoe
    request-dialin
      protocol pppoe
    username cisco privilege 15 password 0 xxxxxxxx
    crypto isakmp policy 3
    encr 3des
    authentication pre-share
    group 2
    crypto isakmp fragmentation
    crypto isakmp client configuration group vpnclient
    key cisco123
    domain selfip.net
    pool ippool
    acl 110
    crypto ipsec transform-set myset esp-3des esp-md5-hmac
    crypto dynamic-map dynmap 10
    set transform-set myset
    reverse-route
    crypto map clientmap client authentication list userAuthen
    crypto map clientmap isakmp authorization list groupauthor
    crypto map clientmap client configuration address respond
    crypto map clientmap 10 ipsec-isakmp dynamic dynmap
    archive
    log config
      hidekeys
    interface Loopback0
    ip address 10.11.0.1 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    interface Loopback2
    description SSL VPN Website IP address
    ip address 10.10.10.1 255.255.255.0
    interface Loopback1
    description SSL DHCP Pool Gateway Address
    ip address 192.168.250.1 255.255.255.0
    interface FastEthernet0
    description $ES_LAN$
    ip address 192.168.0.1 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    duplex auto
    speed auto
    interface BRI0
    no ip address
    encapsulation hdlc
    shutdown
    interface FastEthernet1
    interface FastEthernet2
    switchport access vlan 2
    interface FastEthernet3
    interface FastEthernet4
    interface FastEthernet5
    interface FastEthernet6
    interface FastEthernet7
    interface FastEthernet8
    interface ATM0
    no ip address
    no atm ilmi-keepalive
    pvc 8/35
      encapsulation aal5mux ppp dialer
      dialer pool-member 1
    bundle-enable
    dsl operating-mode auto
    interface Vlan1
    no ip address
    interface Dialer1
    ip ddns update hostname myserver.selfip.net
    ip ddns update mydyndnsupdate host members.dyndns.org
    ip address negotiated
    ip nat outside
    ip virtual-reassembly
    encapsulation ppp
    ip policy route-map VPN-Client
    dialer pool 1
    ppp chap hostname xxx
    ppp chap password 0 xxxx
    ppp pap sent-username xxx password 0 xxxx
    crypto map clientmap
    ip local pool ippool 192.168.50.100 192.168.50.200
    ip local pool sslvpnpool 192.168.250.2 192.168.250.100
    ip forward-protocol nd
    ip route 0.0.0.0 0.0.0.0 Dialer1
    ip http server
    ip http authentication local
    ip http secure-server
    ip nat inside source static tcp 192.168.0.2 21 interface Dialer1 790
    ip nat inside source static tcp 192.168.0.15 21 interface Dialer1 789
    ip nat inside source list 102 interface Dialer1 overload
    ip nat inside source static tcp 10.10.10.1 443 interface Dialer1 443
    ip nat inside source static tcp 10.10.10.1 80 interface Dialer1 80
    access-list 102 deny   ip 192.168.0.0 0.0.0.255 192.168.50.0 0.0.0.255
    access-list 102 permit ip 192.168.0.0 0.0.0.255 any
    access-list 110 permit ip 192.168.0.0 0.0.0.255 192.168.50.0 0.0.0.255
    access-list 144 permit ip 192.168.50.0 0.0.0.255 any
    route-map VPN-Client permit 10
    match ip address 144
    set ip next-hop 10.11.0.2
    control-plane
    banner motd ^C
    ================================================================
                    UNAUTHORISED ACCESS IS PROHIBITED!!!
    =================================================================
    ^C
    line con 0
    line aux 0
    line vty 0 4
    password mypassword
    transport input telnet ssh
    webvpn gateway MyGateway
    ip address 10.10.10.1 port 443 
    http-redirect port 80
    ssl trustpoint TP-self-signed-1279712955
    inservice
    webvpn install svc flash:/webvpn/svc_1.pkg sequence 1
    webvpn install csd flash:/webvpn/sdesktop.pkg
    webvpn context SecureMeContext
    title "My SSL VPN Service"
    secondary-color #C0C0C0
    title-color #808080
    ssl authenticate verify all
    url-list "MyServers"
       heading "My Intranet"
       url-text "Cisco" url-value "http://192.168.0.2"
       url-text "NetGear" url-value "http://192.168.0.3"
    login-message "Welcome to My VPN"
    policy group MyDefaultPolicy
       url-list "MyServers"
       functions svc-enabled
       svc address-pool "sslvpnpool"
       svc keep-client-installed
    default-group-policy MyDefaultPolicy
    aaa authentication list userAuthen
    gateway MyGateway domain testvpn
    max-users 100
    csd enable
    inservice
    end
    Thank you!

    Hi,
    Please check SAP note:
    2004579 - You cannot create a FR company from a Package
    Thanks & Regards,
    Nagarajan

  • When I forward an email, it includes at the top of the new forwarded message, all the headers from the original message. How do I make that disappear?

    I'm using a Mac Air with Thunderbird 34.0.
    When I forward an email, for some reason it now includes all of the headers at the top of the new forwarded message that I'm creating ... making quite a mess.
    It looks like this below. How do I make it go away?
    -------- Forwarded Message --------
    Return-path: <[email protected]>
    Received: from st11p00mm-smtpin012.mac.com ([17.172.87.212]) by ms03553.mac.com (Oracle Communications Messaging Server 7u4-27.08 (7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTP id <[email protected]> for [email protected]; Sun, 24 Aug 2014 13:21:27 +0000 (GMT)
    Original-recipient: rfc822;[email protected]
    Received: from mail-qa0-f47.google.com ([209.85.216.47]) by st11p00mm-smtpin012.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPS id <[email protected]> for [email protected] (ORCPT [email protected]); Sun, 24 Aug 2014 13:21:27 +0000 (GMT)
    Received-SPF: pass (st11p00mm-smtpin012.mac.com: domain of [email protected] designates 209.85.216.47 as permitted sender) receiver=st11p00mm-smtpin015.mac.com; client-ip=209.85.216.47; helo=mail-qa0-f47.google.com; [email protected];
    Authentication-results: st11p00mm-smtpin012.mac.com; spf=pass (st11p00mm-smtpin012.mac.com: domain of [email protected] designates 209.85.216.47 as permitted sender) [email protected];
    Received: by mail-qa0-f47.google.com with SMTP id i13so11489430qae.34 for <[email protected]>; Sun, 24 Aug 2014 06:21:24 -0700 (PDT)
    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:in-reply-to:message-id:date:to :content-transfer-encoding:mime-version; bh=Xfi99wR8Nr2yAuqft1csrVYeP0pN3W6SV6OivQuSeeI=; b=dnVnNnLUPxfe5QnUjmMpyGwjPanqf2bgMW3iTIdtRZTLDS4EKNlVxRXxpHkPgJcSeo WSDgdCAaO6FfKsprrbRLqDsrscX1gPYd0NL/G/cgAlc58noOO7CMkZnLUtIo/GYaoy9I ABk0hcZeJWhJ69j6qNLrX4eQqr/I+jGSbW6vyPmRJ+eNtQ4V5aK7Zhd+jN5y3Ib2AEiC vvbcWHtZPRlLAEKAPcy0QtLaKknePpEu1ebcxG86yyOnIoixFfT1SwFEgjS4ZhAGAFbi EAk//JoMOrGf6+jcLPP079kJD/PYTvx3xjMpSv+0GVlv9uCwieQAYGz0vfu1ro/1Vzsb zp3w==
    X-Received: by 10.140.38.169 with SMTP id t38mr23688513qgt.3.1408886484471; Sun, 24 Aug 2014 06:21:24 -0700 (PDT)
    Return-path: <[email protected]>
    Received: from [192.168.1.100] (static-64-222-96-34.burl.east.myfairpoint.net. [64.222.96.34]) by mx.google.com with ESMTPSA id j65sm44057813qgf.22.2014.08.24.06.21.23 for <[email protected]> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 Aug 2014 06:21:23 -0700 (PDT)
    Subject: Re: Morning thoughts
    References: <[email protected]>
    From: Lisa P Kable <[email protected]>
    Content-type: text/plain; charset=us-ascii
    X-Mailer: iPad Mail (11D257)
    In-reply-to: <[email protected]>
    Message-id: <[email protected]>
    Date: Sun, 24 Aug 2014 09:17:34 -0400
    To: Josh Manheimer <[email protected]>
    Content-transfer-encoding: quoted-printable
    MIME-version: 1.0 (1.0)
    Authentication-results: st11p00mm-smtpin012.mac.com; dkim=pass (2048-bit key) header.d=gmail.com [email protected] header.b=dnVnNnLU; dkim-adsp=pass
    x-icloud-spam-score: 33302230 f=gmail.com;e=gmail.com;is=yes;ir=no;pp=ham;spf=pass;dkim=pass;dmarc=?;wl=absent;pwl=absent;clxs=ham;clxl=absent
    x-dmarc-info: pass=?; dmarc-policy=(noPolicy); s=; d=
    X-MANTSH: 1TEIXWV4bG1oaGkdHB0lGUkdDRl5PWBoaHxEKTEMXGx0EGx0YBBIZBBscEBseGh8 aEQpYTRdLEQptfhcHGxEKTFkXGxoaHxEKWU0XZEVeYF9EQREKRFkXGBoRCllJFx0fcRsGGx8ad wYbHBkGGgYaBhMcBhpxGhAadwYaBhsaBhkaBhoGGgYacRoQGncGGhEKWV4XaG55EQpDThdLGxs aYkIfHVIdBE8ZeHMHHWUbGRgbeGYRCkVDFxYcEh9vaxsfHgdsax8aBx4fHmgHa2kaGwceG2xvb xkTGhJpbhxqTUdLQ0YESUVHFBEKWFwXGQQaBBscB01LGkseEhlIBRsdBBsdGAQSGQQbHBAbHho fGxEKXlkXZmYeXlMRCk1cFxsTGREKTFoXaGNrb2sRCkVYF2gRCkxGF2JraxEKQ1oXGBoTBBIfB BgbHAQeHREKQl4XGxEKQkUXbE5JXlATell6cH0RCkJOF2NTY2t7E1h+Gl9eEQpCTBdnSUNncGJ ATk1BeREKQmwXZHNrYAVHZ31uX0IRCkJAF2dFQgVFfEhYaVtuEQpCWBdkcmJzQH5aXX9ZRBEKT V4XBxsRCnBoF2ZZexJuUB0STBlrEQpwaBdpbmEFTx5sYEVwWhEKcGgXbF1uQxNtbgFicngRCnB oF2gbY01wGnxoTWNOEQpwaBdlUkheelweH11gZBEKcGwXa0lCa319GEsaXkIRCnBMF2seXntmH XAFQ3MdEQpwQxdpYE0ZQWtGfH0YQhE=
    X-CLX-Spam: false
    X-CLX-Score: 1005
    X-CLX-Shades: NotJunk
    X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.27,0.0.0000 definitions=2014-08-23_03:2014-08-23,2014-08-23,1970-01-01 signatures=0
    X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1408240172

    From the menu bar select '''View-Headers-Normal'''

  • Java Server/Client Applicaton - problem with sending data back

    Hello!
    I'm trying to write a small server/client chat application in Java. It's server with availability to accept connections from many clients and it's app just for fun... However, I've come up against a huge problem: everything what clients send, arrives to server (I'm sure about that because it is displayed on the Server Application screen) and then server should send it back to all clients but it doesn't work. I have no faintest idea what causes this problem. Maybe you can help me?
    Here is my server app code:
    import java.net.*;
    import java.util.*;
    import java.io.*;
    * @author Robin
    public class Server {
        ServerSocket serw = null;
        Socket socket = null;
        String line = null;
        Vector<ClientThread> Watki = new Vector();
        ClientThread watek = null;
        public Server(int port) {
            try {
                serw = new ServerSocket(port);           
                line = "";
                while(true) {
                    System.out.println("Running. Waiting for client to connect...");
                    socket = serw.accept();
                    System.out.println("Connected with:\n" + socket.getInetAddress() + "\n");
                    watek = new ClientThread(socket);
                    Watki.addElement(watek);
                    Watki.firstElement().Send("doszlo?");
            }catch (IOException e) {
                System.out.println("BLAD: " + e);
        public void sendToAll(String s) {
            for(int i = 0; i < Watki.size(); i++) {
                Watki.elementAt(i).Send(s);
        public class ClientThread extends Thread {
            Socket socket;
            DataInputStream in = null;
            DataOutputStream out = null;
            String line = null;
            public ClientThread(Socket s) {
                try {
                    this.socket = s;
                    in = new DataInputStream(s.getInputStream());
                    out = new DataOutputStream(s.getOutputStream());
                    start();
                }catch (IOException e) {
                    System.out.println("BLAD: " + e);
            public void Send(String s) {
                try {
                    out.writeUTF(s);
                }catch (IOException e) {
                    System.out.println("BLAD: " + e);
            public void run() {
                try {
                    line = "";
                    while (true) {
                        line = in.readUTF();
                        System.out.println(line);
                        sendToAll(line);
                }catch (IOException e) {
                    System.out.println("BLAD: " + e);
        public static void main(String[] args) {
            Server serwer = new Server(5000);
    }And here is client app code:
    import java.net.*;
    import java.util.*;
    import java.io.*;
    * @author Robin
    public class Client implements Runnable {
        Socket socket = null;
        BufferedReader keyIn = new BufferedReader(new InputStreamReader(System.in));
        DataInputStream in = null;
        DataOutputStream out = null;
        String line = null;
        public Client(String host, int port) {
            try {
                System.out.println("Connecting to " + host + ":" + port);
                socket = new Socket(host, port);
                System.out.println("Connected\nTALK:");
                out = new DataOutputStream(socket.getOutputStream());
                in = new DataInputStream(socket.getInputStream());
                line = "";
                while(!line.toLowerCase().equals(".bye")) {
                    line = keyIn.readLine();
                    Send(line);
            }catch (UnknownHostException e) {
                System.out.println("BLAD: " + e);
            }catch (IOException e) {
                System.out.println("BLAD: " + e);
        public void Send(String s) {
            try {
                out.writeUTF(s);
            }catch (IOException e) {
                System.out.println("BLAD: " + e);
        public void run() {
            String loaded = "";
            try {
                while(true) {
                    loaded = in.readUTF();
                    System.out.println(loaded);
            }catch (IOException e) {
                System.out.println("BLAD: " + e);
        public static void main(String[] args) {
            Client client = new Client("localhost", 5000);
    }By the way, this app is mainly written in English language (text that appears on the screen) however in functions I used Polish language (for example: BLAD - it means ERROR in English). Sorry for that :)

    Yeap, I will change those exceptions later, thanks for advice.
    You asked what's going on with it: both applications start with no errors, but when I write something in client side it should be sent to the server and then forwarded to all connected clients but it stops somewhere. However, I added a one line to the server code
    line = in.readUTF();
    System.out.println(line);
    sendToAll(line); and after it reads message from client (no matter which one) it shows that message on the server side screen, then it should send this message to all clients but it doesn't work in this moment. What's confusing: no errors occurs, so it's rather a mistake in my code, but where?
    Edited by: Robin3D on Sep 30, 2009 9:07 AM

  • Non-blocking Server/Client is blocking...?!

    First, a simple question:
    Why in most example code using Selectors, when iterating over the Set returned by Selector.selectedKeys() does the currently selected SelectionKey get removed from the Iterator? I see it all the time, but since the SelectionKey is still bound to the underlying Selector it seems to not really do anything.
    Now to my main problem:
    I been working with 1.4 for a week now trying to implement a simple test server/client, whereby the server constantly sends out the current time to any subscribing clients, who in turn display the time to stdout. Pretty straight forward, huh?
    Well, everything seems to go fine...once. The Server accepts the client connection, sends out a the current time, the client (only one for now) receives it, displays to the screen, but then both server and client block on the Selector.select() method.
    If I shut down the client, the server then continues through the select() method, finding one SelectionKey, tries to write to it and throws an IOException (since the client is no more). I'm catching that exception and then removing the channel from the Selector, so that the server may continue to service requests.
    When starting a second client while the first is still running causes the following sequence of events:
    Server: starts up
    ClientA: connects to server
    Server: broadcasts the time
    ClientA: displays time
    // nothing else happens until...
    ClientB: connects to server
    Server: broadcasts the time
    ClientA: displays time
    ClientB: displays time
    //everything blocks again...
    ClientA: disconnects from server
    Server: broadcasts the time
    ClientB: displays time
    As you can see it seems everything blocks until a client does something (connect/disconnect).
    I will post code if anyone asks, but I don't want to spam the board if no one is willing to help me.
    -Justin

    You got it!
    //   ********** SERVER **********
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.nio.ByteBuffer;
    import java.nio.channels.CancelledKeyException;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.ServerSocketChannel;
    import java.nio.channels.SocketChannel;
    import java.util.Date;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.Set;
    public class TestServer
      private static final int DEFAULT_PORT = 9999;
      public static void main(String[] args)
        TestServer s = new TestServer();
      }//end of main(String[])
      public TestServer()
        this(DEFAULT_PORT);
      }// end of TestServer()
      public TestServer(int port)
        InetSocketAddress addr = new InetSocketAddress(port);
        try
          Selector acceptSelector = Selector.open();
          Selector broadcastSelector = Selector.open();
          ConnectionList connections = new ConnectionList(broadcastSelector);
          Acceptor a = new Acceptor(acceptSelector, addr, connections);
          Broadcaster b = new Broadcaster(broadcastSelector, connections);
          a.start();
          b.start();
        }// end of try
        catch (Exception ex)
          ex.printStackTrace();
        }// end of catch
      }// end of TestServer(int)
      private static String status(Selector s)
        StringBuffer sb = new StringBuffer(100);
        sb.append("Selector: ");
        Set keys = s.keys();
        sb.append("\n\tNum Keys: ");
        sb.append(keys.size());
        Iterator iter = keys.iterator();
        int i = 0;
        while (iter.hasNext())
          try
            sb.append("\n\t[");
            sb.append(i++);
            sb.append("]:");
            SelectionKey key = (SelectionKey)iter.next();
            sb.append(" acceptable=");
            sb.append(key.isAcceptable());
            sb.append(" connectable=");
            sb.append(key.isConnectable());
            sb.append(" readable=");
            sb.append(key.isReadable());
            sb.append(" writable=");
            sb.append(key.isWritable());
          }// end of try
          catch (CancelledKeyException cke)
            sb.append("*** CANCELLED KEY");
          }// end of catch
        }// end of while
        return sb.toString();
      }// end of status(Selector)
      class Broadcaster extends Thread
        private final String TF = Broadcaster.class.getName();
        private int BUFFER_SIZE = 2048;
        private Selector selector_;
        private ConnectionList connections_;
        private ByteBuffer buffer_;
        public Broadcaster(Selector selector, ConnectionList connections)
          super("Broadcaster");
          selector_ = selector;
          connections_ = connections;
          buffer_ = ByteBuffer.allocateDirect(BUFFER_SIZE);
        public void run()
          while (true)
            try
              registerNewChannels();
              System.out.println("BroadcasterThread: Before select() "+status(selector_));
              System.out.println("BroadcasterThread: Selecting...");
              int keysReady = selector_.select();
              System.out.println("BroadcasterThread: After select() "+status(selector_));
              System.out.println("BroadcasterThread: "+keysReady+" ready Key(s)");
              if (keysReady > 0)
                transmit();
              }// end of if
            }// end of try
            catch (Exception ex)
              ex.printStackTrace();
              return;
            }// end of catch
          }// end of while
        protected void registerNewChannels()
        throws Exception
          SocketChannel channel = null;
          while (null != (channel = connections_.removeFirst()))
            channel.configureBlocking(false);
            channel.register(selector_, SelectionKey.OP_WRITE);
            System.out.println("BroadcasterThread: Registered connection from " + channel.socket().getInetAddress());
          }// end of while 
        }// end of registerNewChannels()
        public void transmit()
        throws Exception
          Set readyKeys = selector_.selectedKeys();
          System.out.println("BroadcasterThread: Selected Keys: "+readyKeys.size());
          SelectionKey tempKey = null;
          SocketChannel tempChannel = null;
          fillBuffer();
          for (Iterator i = readyKeys.iterator(); i.hasNext(); )
            tempKey = (SelectionKey)i.next();
            tempChannel = (SocketChannel)tempKey.channel();
            if (tempKey.isWritable())
              System.out.println("BroadcasterThread: Key selected is Writable");
              try
                tempChannel.write(buffer_);
                System.out.println("BroadcasterThread: Sent message to "+tempChannel.socket().getInetAddress());
              }// end of try
              catch (IOException ioe)
                System.err.println("BroadcasterThread: Lost Connection");
                tempChannel.close();
              }// end of catch
            }// end of if
            else
              System.out.println("BroadcasterThread: Key selected is not Writable");
            }// end of else
          }// end of for
          buffer_.clear();
        }// end of transmit()
        private void fillBuffer()
          buffer_.clear();
          /* Place Date in Buffer */
          long time = System.currentTimeMillis();
          Date d = new Date(time);
          System.out.println("BroadcasterThread: Broadcasting "+d);
          String date = d.toString()+"\n";
          byte[] datebuff = date.getBytes();
          buffer_.put(datebuff);
          /* Prepare for read operations */
          buffer_.flip();
        }// end of fillBuffer()
      }//end of inner class Broadcaster
      class Acceptor extends Thread
        private Selector selector_;
        private ConnectionList connList_;
        private final String TF = Acceptor.class.getName();
        public Acceptor(Selector selector, InetSocketAddress address, ConnectionList connList)
          super("Acceptor");
          selector_ = selector;
          connList_ = connList;
          try
            ServerSocketChannel ssc = ServerSocketChannel.open();
            ssc.configureBlocking(false);
            ssc.socket().bind(address);
            System.out.println("AcceptorThread: Bound to " + address);
            ssc.register(selector_, SelectionKey.OP_ACCEPT);
          }// end of try
          catch (Exception ex)
            ex.printStackTrace();
          }// end of catch
        public void run()
          while (true)
            try
              System.out.println("AcceptorThread: Selecting...");
              int keysReady = selector_.select();// block till a channel is ready
              System.out.println("AcceptorThread: "+keysReady+" Keys Ready");
              if (keysReady > 0)
                acceptPendingConnections();
              }// end of if
            catch (Exception ex)
              ex.printStackTrace();
        protected void acceptPendingConnections()
        throws Exception
          Set readyKeys = selector_.selectedKeys();
          System.out.println("AcceptorThread: Selected "+readyKeys.size()+" Keys");
          for (Iterator i = readyKeys.iterator(); i.hasNext(); )
            SelectionKey key = (SelectionKey)i.next();
            i.remove();  
            ServerSocketChannel readyChannel = (ServerSocketChannel)key.channel();
            SocketChannel incomingChannel = readyChannel.accept();
            System.out.println("AcceptorThread: Connection from " + incomingChannel.socket().getInetAddress());
            connList_.add(incomingChannel);
          }// end of for
        }// end of acceptPendingConnections()
      }// end of inner class Acceptor
      class ConnectionList
        private LinkedList list_;
        private Selector selectorToNotify_;
        public ConnectionList(Selector toNotify)
          list_ = new LinkedList();
          selectorToNotify_ = toNotify;
        }// end of ConnectionList(Selector)
        public synchronized void add(SocketChannel newlyConnectedChannel)
          list_.add(newlyConnectedChannel);
          selectorToNotify_.wakeup();
        }// end of add(SocketChannel)
        public synchronized SocketChannel removeFirst()
          SocketChannel first = null;
          if (list_.size() > 0)
            first = (SocketChannel)list_.removeFirst();
          }//end of if
          return first;
        }// end of removeFirst()
      }// end of inner class ConnectionList
    }// end of class TestServer
    //   ********** CLIENT **********
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.InetSocketAddress;
    import java.nio.ByteBuffer;
    import java.nio.channels.CancelledKeyException;
    import java.nio.channels.Channels;
    import java.nio.channels.ReadableByteChannel;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.SocketChannel;
    import java.nio.channels.WritableByteChannel;
    import java.util.Iterator;
    import java.util.Set;
    public class TestClient
      public static final String TF = TestClient.class.getName();
      private static final String DEFAULT_SERVER_IP = "127.0.0.1";
      private static final int DEFAULT_SERVER_PORT = 9999;
      private InetSocketAddress serverAddr_; 
      private Selector connectSelector_;
      private Selector readSelector_; 
      private WritableByteChannel outputChannel_; 
      private ByteBuffer receiveBuffer_;
      private SocketChannel serverChannel_;
      public static void main(String[] args)
        TestClient c = new TestClient();
      }// end of main(String[])
      public TestClient()
        this(DEFAULT_SERVER_IP, DEFAULT_SERVER_PORT);
      }// end of TestClient()
      public TestClient(String ip, int port)
        try
          serverAddr_ = new InetSocketAddress(ip, port);
          connectSelector_ = Selector.open();
          readSelector_ = Selector.open();
          outputChannel_ = Channels.newChannel(System.out);
          receiveBuffer_ = ByteBuffer.allocateDirect(512);
          connect();
          run();
        }// end of try
        catch (Exception ex)
          ex.printStackTrace();
        }// end of catch
      }// end of TestClient(String, int)
      private void connect()
      throws Exception
        serverChannel_ = SocketChannel.open();
        serverChannel_.configureBlocking(false);
        serverChannel_.connect(serverAddr_);
        serverChannel_.register(connectSelector_, SelectionKey.OP_CONNECT);
        int numKeys = 0;
        while (numKeys <= 0)
          System.out.println("connect(): Selecting...");
          numKeys = connectSelector_.select();
          System.out.println("connect(): "+numKeys+" ready Key(s)");
          Set readyKeys = connectSelector_.selectedKeys();
          System.out.println("connect(): Selected Keys: "+readyKeys.size());
          if (numKeys > 0)
            SelectionKey tempKey = null;
            SocketChannel tempChannel = null;
            Iterator i = readyKeys.iterator();
            while (i.hasNext())
              tempKey = (SelectionKey)i.next(); 
              i.remove();  
              tempChannel = (SocketChannel)tempKey.channel();
              if (tempKey.isConnectable())
                System.out.println("connect(): Key selected is Connectable");
                if (tempChannel.isConnectionPending())
                  System.out.println("connect(): Connection Pending");
                  tempChannel.finishConnect();
                  System.out.println("connect(): Connection Completed");
                }// end of if
              }// end of if
              else
                System.out.println("connect(): Key selected is not Connectable");
              }// end of else
            }// end of while
          }// end of if
        }// end of while
      }// end of connect()
      private void run()
      throws Exception
        serverChannel_.register(readSelector_, SelectionKey.OP_READ);
        while (true)
          System.out.println("run(): Before select() "+status(readSelector_));
          System.out.println("run(): Selecting...");
          int numKeys = readSelector_.select();
          System.out.println("run(): After select() "+status(readSelector_));
          System.out.println("run(): "+numKeys+" Ready Key(s)");
          if (numKeys > 0)
            processKeys();
          }// end of if
        }// end of while
      }// end of run()
      private void processKeys()
      throws Exception
        Set readyKeys = readSelector_.selectedKeys();
        System.out.println("processKeys(): Selected Keys: "+readyKeys.size());
        SelectionKey tempKey = null;
        SocketChannel tempChannel = null;
        for (Iterator i = readyKeys.iterator(); i.hasNext(); )
          tempKey = (SelectionKey)i.next();
          tempChannel = (SocketChannel)tempKey.channel();
          if (tempKey.isReadable())
            System.out.println("processKeys(): Key selected is Readable");
            try
              tempChannel.read(receiveBuffer_);
              receiveBuffer_.flip();
              outputChannel_.write(receiveBuffer_);
              receiveBuffer_.clear();
            }// end of try
            catch (IOException ioe)
              System.out.println("processKeys(): Lost Connection");
              tempKey.cancel();
            }// end of catch
          }// end of if
          else
            System.out.println("processKeys(): Key selected is not Readable");
          }// end of else
        }// end of for
      }// end of processKeys()
      private static String status(Selector s)
        StringBuffer sb = new StringBuffer(100);
        sb.append("Selector: ");
        Set keys = s.keys();
        sb.append("\n\tNum Keys: ");
        sb.append(keys.size());
        Iterator iter = keys.iterator();
        int i = 0;
        while (iter.hasNext())
          try
            sb.append("\n\t[");
            sb.append(i++);
            sb.append("]:");
            SelectionKey key = (SelectionKey)iter.next();
            sb.append(" acceptable=");
            sb.append(key.isAcceptable());
            sb.append(" connectable=");
            sb.append(key.isConnectable());
            sb.append(" readable=");
            sb.append(key.isReadable());
            sb.append(" writable=");
            sb.append(key.isWritable());
          }// end of try
          catch (CancelledKeyException cke)
            sb.append("*** CANCELLED KEY");
          }// end of catch
        }// end of while
        return sb.toString();
      }// end of status(Selector)
    }// end of class TestClient

  • Need an example of server / client program with swing interface

    Hi!
    After a lot of trying i still haven't managed to create a server client program using swing components ...
    can someone write a mini application to demonstrate how this can be done?
    i would like to have a frame with a button a texField for input and a textAread for the output
    What i have in mind is the following ..
    say im the server
    i write something in the textField and then i press the button
    then the information written in the textFiled is passed to the client who shows it in his textArea
    The same thing goes on with the client (he can write something in his own textField and when he presses the button the info is passed at the
    server who puts it in his textArea) and vice versa.
    i have written many classes that trying unsuccessfully to do that ... below i show my last attempt ...
    I would appreciate if you could write a small application which it could to this.
    The whole idea is to create a turn based game ( i have implemented the game engine and graphics and i try to add the internet function)
    Here is the code ...( i would appreciate if you write a new code instead of trying to correct mine ( which i think it's impossible) in order to use it as a general example)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    @SuppressWarnings("serial")
    *  In order to have a more gereral program instead of passing strings between the server
    *  and the client a pass an MyObjext object.  The MyObject class has an integer and a String
    *  (which is always the same) field . At the textField i write an integer number and i
    *  make a new MyObject which i want to pass to the server or the client and vice versa.
    *  The textArea shows the integer value of the MyObject which was passed from the server /client
    public class MyUserInterface extends JFrame {
         MyObject returnObject;
         JTextField myTextField;
         JTextArea te ;
         ClientGame cg;
         ServerGame sg;
          * used to determine if the current instance is running as a client or host
         boolean isHost;
         //The constructor of the client
         public MyUserInterface(ClientGame cg){
              this("Client");
              this.cg = cg;
              isHost = false;
         //The constructor of the server
         public MyUserInterface(ServerGame sg){
              this("Server");
              this.sg = sg;
              isHost = true;
         //The general constructor used both by client and server ..
         // it initializes the GUi components and add an actionListenr to the button
         public MyUserInterface(String str) {
              super(str);
              myTextField = new JTextField(2);
              te = new JTextArea();
              te.setPreferredSize(new Dimension(100,100));
              JButton okButton = new JButton("Ok");
              okButton.addActionListener(new ActionListener() {
                   @Override
                   public void actionPerformed(ActionEvent e) {
                        try{
                             int a = Integer.parseInt(MyUserInterface.this.myTextField.getText());
                             System.out.println(a);   //used to control the flow of the program
                                  MyUserInterface.this.returnObject = new MyObject(a);
                             //sends the data
                             sendData();
                             //waiting for response...
                             getData();
                             catch(Exception ex){System.out.println("Error in the UI action command" +
                                                                ex.printStackTrace();}
              JPanel panel =  new JPanel(new FlowLayout());
              panel.add(okButton);
              panel.add(myTextField);
              panel.add(te);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              getContentPane().add(panel);
              pack();
              setVisible(true);
         protected MyObject getReturnObject() {
              return returnObject;
         public void sendData(){
              new Thread(new Runnable() {
                   @Override
                   public void run() { 
                        if (!isHost)cg.sentData(returnObject);    //using the Servers out and in methods
                        else sg.sentData(returnObject);                    //using the Clients out and in methods
                        System.out.println("data sending");
         public MyObject getData(){
              MyObject obj;
              System.out.println("Retrieveing Data");
              if (!isHost)obj = (MyObject)cg.getData();
              else obj = (MyObject)sg.getData();
              System.out.println(" data retrieved  = "+ obj.getInt());  //just to control how the code flows
              te.setText(obj.getInt()+"");       
              return obj;
         public static void main(String[] args) {
              *Initiating the Server
              new Thread(new Runnable() {
                   @Override
                   public void run() {
                        ServerGame sg = new ServerGame();
                        new MyUserInterface(sg);
              }).start();     
               * Initiating the Client
              new Thread(new Runnable() {
                   @Override
                   public void run() {
                        ClientGame cg = new ClientGame("192.168.178.21");   //<----in case you run my code
                                                                          //..don't forget to change to your
                        new MyUserInterface(cg);                              //ip
              }).start();
    import java.io.*;
    import java.net.*;
    public class ClientGame {
         String ipAddress;
         Socket clientSocket = null;
        ObjectOutputStream out = null;
        ObjectInputStream in = null;
         public ClientGame(String ipAddress) {
              this.ipAddress = ipAddress;
              try {
                   System.out.println("Connecting To Host");
                 clientSocket = new Socket(InetAddress.getByName(ipAddress),4444);
                System.out.println("Host Found ...Io initializaton");
                out = new ObjectOutputStream(clientSocket.getOutputStream());
                in = new ObjectInputStream(clientSocket.getInputStream());
            } catch (UnknownHostException e) {
                System.err.println("Don't know about host: taranis.");
                System.exit(1);
            } catch (IOException e) {
                System.err.println("Couldn't get I/O for the connection to: taranis.");
                System.exit(1);
         public Object getData(){
              Object fromServer = null ;
              do{
                 try {
                      fromServer = in.readObject();
                 catch(ClassNotFoundException ex){}
                  catch(IOException e){}
              }while(fromServer==null);
              return fromServer;        
         public void sentData(final Object obj){
              new Thread(new Runnable() {
                   @Override
                   public void run() {
                        try{
                             out.writeObject(obj);
                        catch(IOException e){}
              }).start();
         public void terminateConnection(){
              try{
                   out.close();
                   in.close();
                   clientSocket.close();
              catch (IOException e){}
    public class ServerGame {
         ServerSocket serverSocket;
         Socket clientSocket;
         ObjectOutputStream out = null;
        ObjectInputStream in = null;
         public ServerGame() {
              try{
                   serverSocket = new ServerSocket(4444);
                   clientSocket = serverSocket.accept();
                   out =  new ObjectOutputStream(clientSocket.getOutputStream());
                in = new ObjectInputStream(clientSocket.getInputStream());
              catch(IOException e){System.out.println("IOException in ServerGame");}
         public Object getData(){
              Object fromClient = null ;
              do{
                 try {
                      fromClient = in.readObject();
                 catch(ClassNotFoundException ex){}
                  catch(IOException e){}
              }while(fromClient==null);
             return fromClient;        
         public void sentData(final Object obj){
              new Thread(new Runnable() {
                   @Override
                   public void run() {
                        try{
                   out.writeObject(obj);
              catch(IOException e){}
              }).start();
         public void terminateConnection(){
              try{
                   out.close();
                   in.close();
                   clientSocket.close();
                   serverSocket.close();
              catch (IOException e){}
         public static void main(String[] args) {
              new ServerGame();
    import java.io.Serializable;
    * this is a test object
    * it has a String field and a value
    *  The string is always the same but the integer value is defined in the constructor
    public class MyObject implements Serializable{
         private static final long serialVersionUID = 1L;
         String str;
         int myInt;
         MyObject(int a){
              str = "A String";
              myInt = a;
         public int getInt(){
              return myInt;
    }

    Pitelk wrote:
    I believe that a good code example can teach you things ;that you would need many days of searching; in no timeSo lets write one small example.. Ill help a little, but you do most of the work.
    jverd approach is deffenetly the way to go.
    jverd wrote:
    * Write a very small, simple Swing program with an input area, an output area, and a button. When you click the button, what's in the input area gets copied over to the output area.This part is partially done.
    * Write a very small, simple client/server program without Swing. It should just send a couple of hardcoded messages back and forth.And this part is for you(Pitelk) to continue on. I cannot say that this is the best way. or that its good in any way. I do however like to write my client/server programs like this. And perhaps, and hopefully, Ill learn something new from this as well.
    This is how far I got in about 10-20min..
    package client;
    * To be added;
    * A connect method. That connects the client to the server and
    * opens up both the receive and transmit streams. After doing that
    * the an instance of the ServerListener class should be made.
    * Also an disconnect method could be usable. But thats a later part.
    public class TestClass1 {
    package utils;
    import java.io.ObjectInputStream;
    import client.TestClass1;
    * This class is meant to be listening to all responses given from
    * the server to the client. After a have received data from the
    * server. It should be forwarded to the client, in this case
    * TestClass1.
    public class ServerListener implements Runnable {
         public ServerListener(ObjectInputStream in, TestClass1 tc) {
         @Override
         public void run() {
              while(true) {
    package server;
    import java.io.ObjectOutputStream;
    import java.net.Socket;
    import java.util.ArrayList;
    import java.util.List;
    * This class should handle all data sent to the server from the clients.
    class Server implements Runnable {
         private static List<ObjectOutputStream> outStreams = new ArrayList<ObjectOutputStream>();
         private Socket client = null;
         public Server(Socket client) {
              this.client = client;
         @Override
         public void run() {
              while(true) {
    * The meaning of this class is to listen for clients trying to connect
    * to the server. Once connection is achieved a new thread for that client
    * should be made to listen for data sent by the client to the server.
    public class ChatServer implements Runnable {
         @Override
         public void run() {
              while(true) {
    package utils;
    import java.io.Serializable;
    @SuppressWarnings("serial")
    public class MyObject implements Serializable {
         private String mssg;
         private String clientID;
         private String clientName;
         public MyObject(String mssg, String clientID, String clientName) {
              this.mssg = mssg;
              this.clientID = clientID;
              this.clientName = clientName;
         //Generate getters and setters..
    }Continue on this, and when you get into problems etc post them. Also show with a small regular basis how far you have gotten with each class or it might be seen as you have lost intresst and then this thread is dead.
    EDIT: I should probably also say that Im not more than a java novice, at the verry most. So I cannot guarantee that I alone will be able to solve all the problems that might occure during this. But Im gonna try and help with the future problems that may(most likely will) occure atleast(Trying to reserve my self incase of misserable failiure from me in this attempt).
    Edited by: prigas on Jul 7, 2008 1:47 AM

  • Messages server proxy65 behind NAT?

    Hi,
    How do I get the proxy65 service usable from the internet? It's natted, here's my setup:
    I have a messages server runing on x.x.x.x. (private IP)
    I have a router that forwards traffic on ports 5222,...,7777 from the public IP y.y.y.y
    My proxy65 configuration in /Library/Preferences/com.apple.Proxy65.plist  can only accept the ip x.x.x.x as it cannot bind to the external IP.
    The messages server advertises the proxy as <streamhost port='7777' host='x.x.x.x' jid='proxy65.domain.com'/>
    and that is obviously not usable from outside.
    Is there a way to advertise the external IP of the messages host so that wan clients can send files to lan clients?
    Thanks,
    Anton.

    Update:
    I commented out this:
        socket.inet_pton(socket.AF_INET, ip)
    in this:
    /Applications/Server.app/Contents/ServerRoot/usr/share/proxy65/proxy65.py
    and now my
    /Library/Preferences/com.apple.Proxy65.plist   
    can use a hostname instead of IP like so:
    <dict>
            <key>jid</key>
            <string>proxy65.domain.com</string>
            <key>proxyips</key>
            <string>xmpp.domain.com:7777</string>
    so now all works from the outside and from the inside.

  • Email attachment not included in forwarded message - no error message given

    A coworker of mine was trying to forward a large 25.6MB pdf over the AT&T network.  She downloaded entire message before hitting forward and selected "include attachments" when given the option.  She could see the icon for the attachment at the bottom of the forwarded message, but the recipient doesn't receive the attachment and it is not reflected in the sent email.  There is no warning or error message given.  She could forward this from her desktop account, so it doesn't seem to be a server based limit on attachments..
    This is an exchange server email account and an iphone 5.
    Any ideas?

    I too am experiencing this behavior, however, for some reason that I do not know, the attachments appear ok one day and then they appear embedded. This is becoming detrimental to my work!
    Is anyone looking into this at Apple?
    C
    --Boundary(IDD652jjiT9bsdspgfbLeNSA)
    Content-type: application/msword; name=vzw-swd-mmsc.doc
    Content-transfer-encoding: BASE64
    Content-disposition: attachment; filename=vzw-swd-mmsc.doc
    0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAA
    PAAAAAAAAAAAEAAAPgAAAAEAAAD+////AAAAADsAAAD/////////////////////
    ///////////////////////////////////////////spcEAMyAJBAAA8BK/AAAA
    AAAAEAAAAAAABAAAhCIAAA4AYmpiamSiZKIAAAAAAAAAAAAAAAAAAAAAAAAJBBYA
    An e-mail message with a Word-attachment that was
    sent by forwarding was not interpreted correctly by
    Mail. The attachment is shown as inline undecoded
    data:
    --------------060401070608000609090303
    Content-Type: application/msword;
    name="linuxhandleiding.doc"
    Content-Transfer-Encoding: base64
    Content-Disposition: inline;
    filename="linuxhandleiding.doc"
    0M8R4KGxGuEA(...)
    To reproduce this, I sent an e-mail with a Word
    attachment to my own address, using Thunderbird on a
    Linux machine. After that, I forwarded the received
    message with the attachment again to my own address.
    In Thunderbird, the forwarded message shows the
    attachment correctly, but in Apple Mail (2.1), that I
    use with the same e-mail account (IMAP), the original
    message shows the attachment correctly, but in the
    forwarded message it appears undecoded in the message
    body (see above).
    I searched the forum and found similar issues, but
    not exactly what happens here. Also, no solutions
    provided helped me to solve this problem. Any
    ideas?
    iBook G4 / Mac
    mini G4   Mac OS X (10.4.7)   Mail
    2.1
    PowerBook G4   Mac OS X (10.4.7)  

  • Workprocesses not connecting to message server

    Hi all,
    the sapinstance  is not comming up after restart.
    the problems are
    1.R3trance  -d return code =0000
    2.At SQL prompt> ORA-12154 error coming .
    3. trace file for dispatcher.
    trc file: "dev_disp", trc level: 1, release: "700"
    sysno      00
    sid        EC6
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    144
    intno      20050900
    make:      multithreaded, Unicode, optimized
    pid        4072
    Mon Sep 15 12:28:59 2008
    kernel runs with dp version 232000(ext=109000) (@(#) DPLIB-INT-VERSION-232000-UC)
    length of sys_adm_ext is 576 bytes
    SWITCH TRC-HIDE on ***
    ***LOG Q00=> DpSapEnvInit, DPStart (00 4072) [dpxxdisp.c   1243]
         shared lib "dw_xml.dll" version 144 successfully loaded
         shared lib "dw_xtc.dll" version 144 successfully loaded
         shared lib "dw_stl.dll" version 144 successfully loaded
         shared lib "dw_gui.dll" version 144 successfully loaded
         shared lib "dw_mdm.dll" version 144 successfully loaded
    rdisp/softcancel_sequence :  -> 0,5,-1
    use internal message server connection to port 3900
    Mon Sep 15 12:29:04 2008
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  5371]
    MtxInit: 30000 0 0
    DpSysAdmExtInit: ABAP is active
    DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
    DpIPCInit2: start server >H2SEC6_EC6_00                           <
    DpShMCreate: sizeof(wp_adm)          18672     (1436)
    DpShMCreate: sizeof(tm_adm)          4270848     (21248)
    DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    DpShMCreate: sizeof(comm_adm)          528064     (1048)
    DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    DpShMCreate: sizeof(slock_adm)          0     (96)
    DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    DpShMCreate: sizeof(file_adm)          0     (72)
    DpShMCreate: sizeof(vmc_adm)          0     (1544)
    DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    DpShMCreate: sizeof(gw_adm)     48
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 05DE0040, size: 4930904)
    DpShMCreate: allocated sys_adm at 05DE0040
    DpShMCreate: allocated wp_adm at 05DE2090
    DpShMCreate: allocated tm_adm_list at 05DE6980
    DpShMCreate: allocated tm_adm at 05DE69B0
    DpShMCreate: allocated wp_ca_adm at 061F94B0
    DpShMCreate: allocated appc_ca_adm at 061FF270
    DpShMCreate: allocated comm_adm at 062011B0
    DpShMCreate: system runs without slock table
    DpShMCreate: system runs without file table
    DpShMCreate: allocated vmc_adm_list at 06282070
    DpShMCreate: allocated gw_adm at 062820B0
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 062820E0
    DpShMCreate: allocated wall_adm at 062820E8
    MBUF state OFF
    DpCommInitTable: init table for 500 entries
    ThTaskStatus: rdisp/reset_online_during_debug 0
    EmInit: MmSetImplementation( 2 ).
    MM global diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation view
    <EsNT> Using memory model view.
    <EsNT> Memory Reset disabled as NT default
    <ES> 4095 blocks reserved for free list.
    ES initialized.
    ERROR => DpAsCreate: CreateProcess (3: No such process) [dpntdisp.c   467]
    ***LOG Q0I=> DpAsCreate, CreateProcess ( CreateProcess 3) [dpntdisp.c   469]
    Memory diagnostic                                 *
    Systeminformation
    Processor-Typ             : Intel Pentium Pro
    Processor-Count           : 8
    Operating System          : NT 5.2, Build 3790
    Service Pack              : Service Pack 1
    NT Pagefile Informations
    Config. minimum size      : 8388608 K
    Config. maximum size      : 12582912 K
    Avail.  maximum size      : 12582912 K
    Num
    Pagefile
    Min.Size
    Max.Size
    Avail.Max
    Curr.Size
    1
    c:\pagefile.sys
    8388608 K
    12582912 K
    12582912 K
    8372224 K
    NT Task Manager Informations
    Total Handles             :        0
    Total Threads             :        0
    Total Processes           :        0
    Commit Charge Total       :  5845420 K
    Commit Charge Limit       : 12382576 K
    Commit Charge Peak        :  5845452 K
    Phys.Memory Total         :       54 K
    Phys.Memory Available     : 92263112 K
    File Cache                : 17376774 K
    Kernel Memory Total       : 2084091208 K
    Kernel Memory Paged       :        0 K
    Kernel Memory Nonpaged    : 92263140 K
    Memory usage of current process
    Total virt.address space  :  2097024 K
    Avail.virt.address space  :   735836 K
    Private Pages             :        0 K
    Total heap size           :    12947 K
    Virtual memory regions    :        0 K
    Uncommitted heap memory   :     6068 K
    Allocated heap memory     :     6748 K
    Moveable heap memory      :        0 K
    DDE shared heap memory    :        0 K
    Memory usage of all processes
    PID
    Image
    Instance
    Work.Set
    WS Peak
    Priv.Pages
    PP Peak
    Pg Fault
    592
    sapstartsrv.exe
    16188 K
    16204 K
    19096 K
    19120 K
    4
    3832
    msg_server.EXE
    [MS] EC6_01
    7752 K
    7752 K
    10316 K
    10316 K
    1
    984
    enserver.EXE
    [**] EC6_01
    13644 K
    13644 K
    53448 K
    53448 K
    3
    1484
    msg_server.EXE
    [MS] EC6_00
    8160 K
    8160 K
    10696 K
    10696 K
    2
    4072
    disp+work.EXE
    31972 K
    32032 K
    67548 K
    67652 K
    7
    1860
    igswd.EXE
    [**] EC6_00
    2612 K
    2860 K
    1484 K
    1756 K
    0
    Sum
    80328 K
    162588 K
    DP_FATAL_ERROR => Gateway could not be started - I better exit now
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    NiWait: sleep (10000ms) ...
    NiISelect: timeout 10000ms
    NiISelect: maximum fd=1557
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Mon Sep 15 12:29:14 2008
    NiISelect: TIMEOUT occured (10000ms)
    dump system status
    Workprocess Table (long)               Mon Sep 15 06:59:14 2008
    ========================
    No Ty. Pid      Status  Cause Start Err Sem CPU    Time  Program          Cl  User         Action                    Table
    0 DIA       -1 Run           no      0   0        0                                                                         
    1 DIA       -1 Run           no      0   0        0                                                                         
    2 DIA       -1 Run           no      0   0        0                                                                         
    3 DIA       -1 Run           no      0   0        0                                                                         
    4 DIA       -1 Run           no      0   0        0                                                                         
    5 DIA       -1 Run           no      0   0        0                                                                         
    6 UPD       -1 Run           no      0   0        0                                                                         
    7 ENQ       -1 Run           no      0   0        0                                                                         
    8 BTC       -1 Run           no      0   0        0                                                                         
    9 BTC       -1 Run           no      0   0        0                                                                         
    10 BTC       -1 Run           no      0   0        0                                                                         
    11 SPO       -1 Run           no      0   0        0                                                                         
    12 UP2       -1 Run           no      0   0        0                                                                         
    Dispatcher Queue Statistics               Mon Sep 15 06:59:14 2008
    ===========================
    --------++++--
    +
    Typ
    now
    high
    max
    writes
    reads
    --------++++--
    +
    NOWP
    0
    0
    2000
    0
    0
    --------++++--
    +
    DIA
    0
    0
    2000
    0
    0
    --------++++--
    +
    UPD
    0
    0
    2000
    0
    0
    --------++++--
    +
    ENQ
    0
    0
    2000
    0
    0
    --------++++--
    +
    BTC
    0
    0
    2000
    0
    0
    --------++++--
    +
    SPO
    0
    0
    2000
    0
    0
    --------++++--
    +
    UP2
    0
    0
    2000
    0
    0
    --------++++--
    +
    max_rq_id          0
    wake_evt_udp_now     0
    wake events           total     0,  udp     0 (  0%),  shm     0 (  0%)
    since last update     total     0,  udp     0 (  0%),  shm     0 (  0%)
    Dump of tm_adm structure:               Mon Sep 15 06:59:14 2008
    =========================
    Term    uid  man user    term   lastop  mod wp  ta   a/i (modes)
    Workprocess Comm. Area Blocks               Mon Sep 15 06:59:14 2008
    =============================
    Slots: 300, Used: 0, Max: 0
    --------++--
    +
    id
    owner
    pid
    eyecatcher
    --------++--
    +
    NiWait: sleep (5000ms) ...
    NiISelect: timeout 5000ms
    NiISelect: maximum fd=1557
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Mon Sep 15 12:29:19 2008
    NiISelect: TIMEOUT occured (5000ms)
    DpHalt: shutdown server >H2SEC6_EC6_00                           < (normal)
    DpJ2eeDisableRestart
    Switch off Shared memory profiling
    ShmProtect( 57, 3 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RW
    ShmProtect( 57, 1 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RD
    DpWakeUpWps: wake up all wp's
    [DpWpDied] W0 handle not set (PID:-1)
    [DpWpDied] W1 handle not set (PID:-1)
    [DpWpDied] W2 handle not set (PID:-1)
    [DpWpDied] W3 handle not set (PID:-1)
    [DpWpDied] W4 handle not set (PID:-1)
    [DpWpDied] W5 handle not set (PID:-1)
    [DpWpDied] W6 handle not set (PID:-1)
    [DpWpDied] W7 handle not set (PID:-1)
    [DpWpDied] W8 handle not set (PID:-1)
    [DpWpDied] W9 handle not set (PID:-1)
    [DpWpDied] W10 handle not set (PID:-1)
    [DpWpDied] W11 handle not set (PID:-1)
    [DpWpDied] W12 handle not set (PID:-1)
    Stop work processes
    Terminate gui connections
    wait for end of work processes
    not attached to the message server
    cleanup EM
    EsCleanup ....
    EmCleanup() -> 0
    Es2Cleanup: Cleanup ES2
    ***LOG Q05=> DpHalt, DPStop ( 4072) [dpxxdisp.c   10421]
    Good Bye .....
    Please help
    Sudhakarareddy

    Hi,
    If possible to restart the server and check it.
    some times buffer not clear.
    Regards,
    Anil

  • How do I host multiple domains on a single Messaging Server?

    How do I host multiple domains on a single Messaging Server?
    <p>
    To host multiple domains on one Messaging Server, use the
    mailAlternateAddress attribute. If you want to host two domains
    (customer1.com and customer2.com) on your server mail1.domain.com,
    make sure that:
    The various domains (in DNS) point to the installed mail server
    (you must have the MX records that
    points mail for customer1.com to mail1.domain.com and
    customer2.com to mail1.domain.com)
    That each person receiving mail at customer1.com and
    customer2.com has an appropriate mailAlternateAddress
    attribute describing the appropriate email address. For
    instance, John Doe can have an email address (i.e. the value
    of the 'mail' attribute for the John Doe LDAP entry) of
    [email protected] and receive his mail on
    [email protected] (the value of the mailAlternateAddress
    attribute)
    With Messaging Server 3.5, mailAlternateAddress can take the
    form of @mail1.domain.com. If jdoe's mailAlternateAddress is
    set to @mail1.domain.com, mail sent to [email protected]
    will be delivered to [email protected]

    jaygatsby1123 wrote:
    So what exactly am I doing with virtual hosts?  There is a place for Aliases...  What would I put in the "Aliases" box?
    Any other host name that you want to resolve to the specified virtual host.  It's quite literally an alias.
    if you want www.example.com and www.example.org to end up at the same web site and you already have a virtual host — Apple refers to virtual hosts as sites — configured for www.example.com in Server.app, then you'd add www.example.org as an alias for the www.example.com virtual host (site).
    Virtual hosts are implemented in a web server using some details of the HTTP or HTTPS protocol, and what the web browser (client) specified.  The client gets handed an IP address or a domain name by the user, and the client then fetches the associated IP address for the target web server from the client's DNS services or local host database, and the client then connects to the IP address and passes over the text string that the user had requested — the IP address or domain name or even some local shortcut set up in the client system — via the HTTP or HTTPS protocol.  The web server receives and processes this arriving text string from the client, and uses it to select which web site to render back to the web client.   One subtle detail lurks here, too: the server's own DNS configuration really isn't involved in the selection of the virtual host.

  • After Installing SAP netweaver abap 7.01 (Message server unreachable)

    Hi every one ,
    it was a very long night and still continues
    It's my first time to install SAP netweaver abap 7.01  .. I'm using Operating System : Vista service Pack 1 .. i installed the NetWeaver Abap 7.01 and when the install shield finished he asked me to run the server ..when i clicked " ok " the install shield couldn't run the server and told me to see the log file .. and here is the log file :
    <
    (Dec 23, 2008 7:54:39 PM), Install, com.sap.installshield.CheckServicesAction, err, CheckServicesAction(bean17): Expected service (SAPNSP_00) is not currently running
    (Dec 23, 2008 7:54:39 PM), Install, com.sap.installshield.CheckServicesAction, wrn, CheckServicesAction(bean17): Service SAPNSP_00 is not available, retry after 10 s.
    (Dec 23, 2008 7:54:49 PM), Install, com.sap.installshield.CheckServicesAction, err, CheckServicesAction(bean17): Expected service (SAPNSP_00) is not currently running
    (Dec 23, 2008 7:54:49 PM), Install, com.sap.installshield.CheckServicesAction, wrn, CheckServicesAction(bean17): Service SAPNSP_00 is not available, retry after 10 s.
    (Dec 23, 2008 7:54:59 PM), Install, com.sap.installshield.CheckServicesAction, err, CheckServicesAction(bean17): Expected service (SAPNSP_00) is not currently running
    (Dec 23, 2008 7:54:59 PM), Install, com.sap.installshield.CheckServicesAction, wrn, CheckServicesAction(bean17): Service SAPNSP_00 is not available, retry after 10 s.
    (Dec 23, 2008 7:55:09 PM), Install, com.sap.installshield.CheckServicesAction, err, CheckServicesAction(bean17): Expected service (SAPNSP_00) is not currently running
    (Dec 23, 2008 7:55:09 PM), Install, com.sap.installshield.CheckServicesAction, wrn, CheckServicesAction(bean17): Service SAPNSP_00 is not available, retry after 10 s.
    (Dec 23, 2008 7:55:19 PM), Install, com.sap.installshield.CheckServicesAction, err, CheckServicesAction(bean17): Expected service (SAPNSP_00) is not currently running
    (Dec 23, 2008 7:55:19 PM), Install, com.sap.installshield.CheckServicesAction, wrn, CheckServicesAction(bean17): Service SAPNSP_00 is not available, retry after 10 s.
    (Dec 23, 2008 7:55:29 PM), Install, com.sap.installshield.CheckServicesAction, err, CheckServicesAction(bean17): Expected service (SAPNSP_00) is not currently running
    (Dec 23, 2008 7:55:29 PM), Install, com.sap.installshield.CheckServicesAction, wrn, CheckServicesAction(bean17): Service SAPNSP_00 is not available, retry after 10 s.
    (Dec 23, 2008 7:55:40 PM), Install, com.sap.installshield.CheckServicesAction, err, An error occurred and product installation failed.  Look at the log file F:\SAP\NSP\log.txt for details.
    (Dec 23, 2008 7:55:40 PM), Install, com.sap.installshield.CheckServicesAction, err, ProductException: (error code = 601; message="Services failed to start (see the log for details)")
    STACK_TRACE: 12
    ProductException: (error code = 601; message="Services failed to start (see the log for details)")
         at com.sap.installshield.CheckServicesAction.install(CheckServicesAction.java:95)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    (Dec 23, 2008 7:55:41 PM), Install, com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct, err, An error occurred and product uninstallation failed.  Look at the log file F:\SAP\NSP\log.txt for details.
    (Dec 23, 2008 7:55:41 PM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    STACK_TRACE: 15
    ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.execute(StepWrapperInstallFiles.java:254)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllSteps(StepWrapperInstallFiles.java:224)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllUninstallationSteps(StepWrapperInstallFiles.java:192)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.uninstall(StepWrapperInstallFiles.java:313)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.uninstallProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.processActionsFailed(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    >
    And here is my Services file :
    <
    Copyright (c) 1993-2004 Microsoft Corp.
    This file contains port numbers for well-known services defined by IANA
    Format:
    <service name>  <port number>/<protocol>  [aliases...]   [#<comment>]
    echo                7/tcp
    echo                7/udp
    discard             9/tcp    sink null
    discard             9/udp    sink null
    systat             11/tcp    users                  #Active users
    systat             11/udp    users                  #Active users
    daytime            13/tcp
    daytime            13/udp
    qotd               17/tcp    quote                  #Quote of the day
    qotd               17/udp    quote                  #Quote of the day
    chargen            19/tcp    ttytst source          #Character generator
    chargen            19/udp    ttytst source          #Character generator
    ftp-data           20/tcp                           #FTP, data
    ftp                21/tcp                           #FTP. control
    ssh                22/tcp                           #SSH Remote Login Protocol
    telnet             23/tcp
    smtp               25/tcp    mail                   #Simple Mail Transfer Protocol
    time               37/tcp    timserver
    time               37/udp    timserver
    rlp                39/udp    resource               #Resource Location Protocol
    nameserver         42/tcp    name                   #Host Name Server
    nameserver         42/udp    name                   #Host Name Server
    nicname            43/tcp    whois
    domain             53/tcp                           #Domain Name Server
    domain             53/udp                           #Domain Name Server
    bootps             67/udp    dhcps                  #Bootstrap Protocol Server
    bootpc             68/udp    dhcpc                  #Bootstrap Protocol Client
    tftp               69/udp                           #Trivial File Transfer
    gopher             70/tcp
    finger             79/tcp
    http               80/tcp    www www-http           #World Wide Web
    hosts2-ns          81/tcp                           #HOSTS2 Name Server
    hosts2-ns          81/udp                           #HOSTS2 Name Server
    kerberos           88/tcp    krb5 kerberos-sec      #Kerberos
    kerberos           88/udp    krb5 kerberos-sec      #Kerberos
    hostname          101/tcp    hostnames              #NIC Host Name Server
    iso-tsap          102/tcp                           #ISO-TSAP Class 0
    rtelnet           107/tcp                           #Remote Telnet Service
    pop2              109/tcp    postoffice             #Post Office Protocol - Version 2
    pop3              110/tcp                           #Post Office Protocol - Version 3
    sunrpc            111/tcp    rpcbind portmap        #SUN Remote Procedure Call
    sunrpc            111/udp    rpcbind portmap        #SUN Remote Procedure Call
    auth              113/tcp    ident tap              #Identification Protocol
    uucp-path         117/tcp
    sqlserv           118/tcp                           #SQL Services
    nntp              119/tcp    usenet                 #Network News Transfer Protocol
    ntp               123/udp                           #Network Time Protocol
    epmap             135/tcp    loc-srv                #DCE endpoint resolution
    epmap             135/udp    loc-srv                #DCE endpoint resolution
    netbios-ns        137/tcp    nbname                 #NETBIOS Name Service
    netbios-ns        137/udp    nbname                 #NETBIOS Name Service
    netbios-dgm       138/udp    nbdatagram             #NETBIOS Datagram Service
    netbios-ssn       139/tcp    nbsession              #NETBIOS Session Service
    imap              143/tcp    imap4                  #Internet Message Access Protocol
    sql-net           150/tcp
    sqlsrv            156/tcp
    pcmail-srv        158/tcp                           #PCMail Server
    snmp              161/udp                           #SNMP
    snmptrap          162/udp    snmp-trap              #SNMP trap
    print-srv         170/tcp                           #Network PostScript
    bgp               179/tcp                           #Border Gateway Protocol
    irc               194/tcp                           #Internet Relay Chat Protocol       
    ipx               213/udp                           #IPX over IP
    rtsps             322/tcp
    rtsps             322/udp
    mftp              349/tcp
    mftp              349/udp
    ldap              389/tcp                           #Lightweight Directory Access Protocol
    https             443/tcp    MCom                   #HTTP over TLS/SSL
    https             443/udp    MCom                   #HTTP over TLS/SSL
    microsoft-ds      445/tcp
    microsoft-ds      445/udp
    kpasswd           464/tcp                           # Kerberos (v5)
    kpasswd           464/udp                           # Kerberos (v5)
    isakmp            500/udp    ike                    #Internet Key Exchange
    crs               507/tcp                           #Content Replication System
    crs               507/udp                           #Content Replication System
    exec              512/tcp                           #Remote Process Execution
    biff              512/udp    comsat
    login             513/tcp                           #Remote Login
    who               513/udp    whod
    cmd               514/tcp    shell
    syslog            514/udp
    printer           515/tcp    spooler
    talk              517/udp
    ntalk             518/udp
    efs               520/tcp                           #Extended File Name Server
    router            520/udp    route routed
    ulp               522/tcp   
    ulp               522/udp   
    timed             525/udp    timeserver
    tempo             526/tcp    newdate
    irc-serv          529/tcp
    irc-serv          529/udp
    courier           530/tcp    rpc
    conference        531/tcp    chat
    netnews           532/tcp    readnews
    netwall           533/udp                           #For emergency broadcasts
    uucp              540/tcp    uucpd
    klogin            543/tcp                           #Kerberos login
    kshell            544/tcp    krcmd                  #Kerberos remote shell
    dhcpv6-client     546/tcp                           #DHCPv6 Client
    dhcpv6-client     546/udp                           #DHCPv6 Client
    dhcpv6-server     547/tcp                           #DHCPv6 Server
    dhcpv6-server     547/udp                           #DHCPv6 Server
    afpovertcp        548/tcp                           #AFP over TCP
    afpovertcp        548/udp                           #AFP over TCP
    new-rwho          550/udp    new-who
    rtsp              554/tcp                           #Real Time Stream Control Protocol
    rtsp              554/udp                           #Real Time Stream Control Protocol
    remotefs          556/tcp    rfs rfs_server
    rmonitor          560/udp    rmonitord
    monitor           561/udp
    nntps             563/tcp    snntp                  #NNTP over TLS/SSL
    nntps             563/udp    snntp                  #NNTP over TLS/SSL
    whoami            565/tcp
    whoami            565/udp
    ms-shuttle        568/tcp                           #Microsoft shuttle
    ms-shuttle        568/udp                           #Microsoft shuttle
    ms-rome           569/tcp                           #Microsoft rome
    ms-rome           569/udp                           #Microsoft rome
    http-rpc-epmap    593/tcp                           #HTTP RPC Ep Map
    http-rpc-epmap    593/udp                           #HTTP RPC Ep Map
    hmmp-ind          612/tcp                           #HMMP Indication
    hmmp-ind          612/udp                           #HMMP Indication
    hmmp-op           613/tcp                           #HMMP Operation
    hmmp-op           613/udp                           #HMMP Operation
    ldaps             636/tcp    sldap                  #LDAP over TLS/SSL
    doom              666/tcp                           #Doom Id Software
    doom              666/udp                           #Doom Id Software
    msexch-routing    691/tcp                           #MS Exchange Routing
    msexch-routing    691/udp                           #MS Exchange Routing
    kerberos-adm      749/tcp                           #Kerberos administration
    kerberos-adm      749/udp                           #Kerberos administration
    kerberos-iv       750/udp                           #Kerberos version IV
    mdbs_daemon       800/tcp
    mdbs_daemon       800/udp
    ftps-data         989/tcp                           #FTP data, over TLS/SSL
    ftps              990/tcp                           #FTP control, over TLS/SSL
    telnets           992/tcp                           #Telnet protocol over TLS/SSL
    imaps             993/tcp                           #IMAP4 protocol over TLS/SSL
    ircs              994/tcp                           #IRC protocol over TLS/SSL
    pop3s             995/tcp    spop3                  #pop3 protocol over TLS/SSL (was spop3)
    pop3s             995/udp    spop3                  #pop3 protocol over TLS/SSL (was spop3)
    kpop             1109/tcp                           #Kerberos POP
    nfsd-status      1110/tcp                           #Cluster status info
    nfsd-keepalive   1110/udp                           #Client status info
    nfa              1155/tcp                           #Network File Access
    nfa              1155/udp                           #Network File Access
    activesync       1034/tcp                           #ActiveSync Notifications
    phone            1167/udp                           #Conference calling
    opsmgr           1270/tcp                           #Microsoft Operations Manager
    opsmgr           1270/udp                           #Microsoft Operations Manager
    ms-sql-s         1433/tcp                           #Microsoft-SQL-Server
    ms-sql-s         1433/udp                           #Microsoft-SQL-Server
    ms-sql-m         1434/tcp                           #Microsoft-SQL-Monitor
    ms-sql-m         1434/udp                           #Microsoft-SQL-Monitor               
    ms-sna-server    1477/tcp
    ms-sna-server    1477/udp
    ms-sna-base      1478/tcp
    ms-sna-base      1478/udp
    wins             1512/tcp                           #Microsoft Windows Internet Name Service
    wins             1512/udp                           #Microsoft Windows Internet Name Service
    ingreslock       1524/tcp    ingres
    stt              1607/tcp
    stt              1607/udp
    l2tp             1701/udp                           #Layer Two Tunneling Protocol
    pptconference    1711/tcp
    pptconference    1711/udp
    pptp             1723/tcp                           #Point-to-point tunnelling protocol
    msiccp           1731/tcp
    msiccp           1731/udp
    remote-winsock   1745/tcp
    remote-winsock   1745/udp
    ms-streaming     1755/tcp
    ms-streaming     1755/udp
    msmq             1801/tcp                           #Microsoft Message Queue
    msmq             1801/udp                           #Microsoft Message Queue
    radius           1812/udp                           #RADIUS authentication protocol
    radacct          1813/udp                           #RADIUS accounting protocol
    msnp             1863/tcp
    msnp             1863/udp
    ssdp             1900/tcp
    ssdp             1900/udp
    close-combat     1944/tcp
    close-combat     1944/udp
    nfsd             2049/udp    nfs                    #NFS server
    knetd            2053/tcp                           #Kerberos de-multiplexor
    mzap             2106/tcp                           #Multicast-Scope Zone Announcement Protocol
    mzap             2106/udp                           #Multicast-Scope Zone Announcement Protocol
    qwave            2177/tcp                           #QWAVE
    qwave            2177/udp                           #QWAVE Experiment Port
    directplay       2234/tcp                           #DirectPlay
    directplay       2234/udp                           #DirectPlay
    ms-olap3         2382/tcp                           #Microsoft OLAP 3
    ms-olap3         2382/udp                           #Microsoft OLAP 3
    ms-olap4         2383/tcp                           #Microsoft OLAP 4
    ms-olap4         2383/udp                           #Microsoft OLAP 4
    ms-olap1         2393/tcp                           #Microsoft OLAP 1
    ms-olap1         2393/udp                           #Microsoft OLAP 1
    ms-olap2         2394/tcp                           #Microsoft OLAP 2
    ms-olap2         2394/udp                           #Microsoft OLAP 2
    ms-theater       2460/tcp
    ms-theater       2460/udp
    wlbs             2504/tcp                           #Microsoft Windows Load Balancing Server
    wlbs             2504/udp                           #Microsoft Windows Load Balancing Server
    ms-v-worlds      2525/tcp                           #Microsoft V-Worlds
    ms-v-worlds      2525/udp                           #Microsoft V-Worlds
    sms-rcinfo       2701/tcp                           #SMS RCINFO
    sms-rcinfo       2701/udp                           #SMS RCINFO
    sms-xfer         2702/tcp                           #SMS XFER
    sms-xfer         2702/udp                           #SMS XFER
    sms-chat         2703/tcp                           #SMS CHAT
    sms-chat         2703/udp                           #SMS CHAT
    sms-remctrl      2704/tcp                           #SMS REMCTRL
    sms-remctrl      2704/udp                           #SMS REMCTRL
    msolap-ptp2      2725/tcp                           #MSOLAP PTP2
    msolap-ptp2      2725/udp                           #MSOLAP PTP2
    icslap           2869/tcp
    icslap           2869/udp
    cifs             3020/tcp
    cifs             3020/udp
    xbox             3074/tcp                           #Microsoft Xbox game port
    xbox             3074/udp                           #Microsoft Xbox game port
    ms-dotnetster    3126/tcp                           #Microsoft .NET ster port
    ms-dotnetster    3126/udp                           #Microsoft .NET ster port
    ms-rule-engine   3132/tcp                           #Microsoft Business Rule Engine Update Service
    ms-rule-engine   3132/udp                           #Microsoft Business Rule Engine Update Service
    msft-gc          3268/tcp                           #Microsoft Global Catalog
    msft-gc          3268/udp                           #Microsoft Global Catalog
    msft-gc-ssl      3269/tcp                           #Microsoft Global Catalog with LDAP/SSL
    msft-gc-ssl      3269/udp                           #Microsoft Global Catalog with LDAP/SSL
    ms-cluster-net   3343/tcp                           #Microsoft Cluster Net
    ms-cluster-net   3343/udp                           #Microsoft Cluster Net
    ms-wbt-server    3389/tcp                           #MS WBT Server
    ms-wbt-server    3389/udp                           #MS WBT Server
    ms-la            3535/tcp                           #Microsoft Class Server
    ms-la            3535/udp                           #Microsoft Class Server
    pnrp-port        3540/tcp                           #PNRP User Port
    pnrp-port        3540/udp                           #PNRP User Port
    teredo           3544/tcp                           #Teredo Port
    teredo           3544/udp                           #Teredo Port
    p2pgroup         3587/tcp                           #Peer to Peer Grouping
    p2pgroup         3587/udp                           #Peer to Peer Grouping
    upnp-discovery   3702/tcp                           #UPNP v2 Discovery
    dvcprov-port     3776/tcp                           #Device Provisioning Port
    dvcprov-port     3776/udp                           #Device Provisioning Port
    msfw-control     3847/tcp                           #Microsoft Firewall Control
    msdts1           3882/tcp                           #DTS Service Port
    sdp-portmapper   3935/tcp                           #SDP Port Mapper Protocol
    sdp-portmapper   3935/udp                           #SDP Port Mapper Protocol
    net-device       4350/tcp                           #Net Device
    net-device       4350/udp                           #Net Device
    ipsec-msft       4500/tcp                           #Microsoft IPsec NAT-T
    ipsec-msft       4500/udp                           #Microsoft IPsec NAT-T
    llmnr            5355/tcp                           #LLMNR
    llmnr            5355/udp                           #LLMNR
    rrac             5678/tcp                           #Remote Replication Agent Connection
    rrac             5678/udp                           #Remote Replication Agent Connection
    dccm             5679/tcp                           #Direct Cable Connect Manager
    dccm             5679/udp                           #Direct Cable Connect Manager
    ms-licensing     5720/tcp                           #Microsoft Licensing
    ms-licensing     5720/udp                           #Microsoft Licensing
    directplay8      6073/tcp                           #DirectPlay8
    directplay8      6073/udp                           #DirectPlay8
    man              9535/tcp                           #Remote Man Server
    rasadv           9753/tcp
    rasadv           9753/udp
    imip-channels   11320/tcp                           #IMIP Channels Port
    imip-channels   11320/udp                           #IMIP Channels Port
    directplaysrvr  47624/tcp                           #Direct Play Server
    directplaysrvr  47624/udp                           #Direct Play Server
    sql6          7210/tcp
    sapdbni72          7269/tcp
    Copyright (c) 1993-2004 Microsoft Corp.
    This file contains port numbers for well-known services defined by IANA
    Format:
    <service name>  <port number>/<protocol>  [aliases...]   [#<comment>]
    echo                7/tcp
    echo                7/udp
    discard             9/tcp    sink null
    discard             9/udp    sink null
    systat             11/tcp    users                  #Active users
    systat             11/udp    users                  #Active users
    daytime            13/tcp
    daytime            13/udp
    qotd               17/tcp    quote                  #Quote of the day
    qotd               17/udp    quote                  #Quote of the day
    chargen            19/tcp    ttytst source          #Character generator
    chargen            19/udp    ttytst source          #Character generator
    ftp-data           20/tcp                           #FTP, data
    ftp                21/tcp                           #FTP. control
    ssh                22/tcp                           #SSH Remote Login Protocol
    telnet             23/tcp
    smtp               25/tcp    mail                   #Simple Mail Transfer Protocol
    time               37/tcp    timserver
    time               37/udp    timserver
    rlp                39/udp    resource               #Resource Location Protocol
    nameserver         42/tcp    name                   #Host Name Server
    nameserver         42/udp    name                   #Host Name Server
    nicname            43/tcp    whois
    domain             53/tcp                           #Domain Name Server
    domain             53/udp                           #Domain Name Server
    bootps             67/udp    dhcps                  #Bootstrap Protocol Server
    bootpc             68/udp    dhcpc                  #Bootstrap Protocol Client
    tftp               69/udp                           #Trivial File Transfer
    gopher             70/tcp
    finger             79/tcp
    http               80/tcp    www www-http           #World Wide Web
    hosts2-ns          81/tcp                           #HOSTS2 Name Server
    hosts2-ns          81/udp                           #HOSTS2 Name Server
    kerberos           88/tcp    krb5 kerberos-sec      #Kerberos
    kerberos           88/udp    krb5 kerberos-sec      #Kerberos
    hostname          101/tcp    hostnames              #NIC Host Name Server
    iso-tsap          102/tcp                           #ISO-TSAP Class 0
    rtelnet           107/tcp                           #Remote Telnet Service
    pop2              109/tcp    postoffice             #Post Office Protocol - Version 2
    pop3              110/tcp                           #Post Office Protocol - Version 3
    sunrpc            111/tcp    rpcbind portmap        #SUN Remote Procedure Call
    sunrpc            111/udp    rpcbind portmap        #SUN Remote Procedure Call
    auth              113/tcp    ident tap              #Identification Protocol
    uucp-path         117/tcp
    sqlserv           118/tcp                           #SQL Services
    nntp              119/tcp    usenet                 #Network News Transfer Protocol
    ntp               123/udp                           #Network Time Protocol
    epmap             135/tcp    loc-srv                #DCE endpoint resolution
    epmap             135/udp    loc-srv                #DCE endpoint resolution
    netbios-ns        137/tcp    nbname                 #NETBIOS Name Service
    netbios-ns        137/udp    nbname                 #NETBIOS Name Service
    netbios-dgm       138/udp    nbdatagram             #NETBIOS Datagram Service
    netbios-ssn       139/tcp    nbsession              #NETBIOS Session Service
    imap              143/tcp    imap4                  #Internet Message Access Protocol
    sql-net           150/tcp
    sqlsrv            156/tcp
    pcmail-srv        158/tcp                           #PCMail Server
    snmp              161/udp                           #SNMP
    snmptrap          162/udp    snmp-trap              #SNMP trap
    print-srv         170/tcp                           #Network PostScript
    bgp               179/tcp                           #Border Gateway Protocol
    irc               194/tcp                           #Internet Relay Chat Protocol       
    ipx               213/udp                           #IPX over IP
    rtsps             322/tcp
    rtsps             322/udp
    mftp              349/tcp
    mftp              349/udp
    ldap              389/tcp                           #Lightweight Directory Access Protocol
    https             443/tcp    MCom                   #HTTP over TLS/SSL
    https             443/udp    MCom                   #HTTP over TLS/SSL
    microsoft-ds      445/tcp
    microsoft-ds      445/udp
    kpasswd           464/tcp                           # Kerberos (v5)
    kpasswd           464/udp                           # Kerberos (v5)
    isakmp            500/udp    ike                    #Internet Key Exchange
    crs               507/tcp                           #Content Replication System
    crs               507/udp                           #Content Replication System
    exec              512/tcp                           #Remote Process Execution
    biff              512/udp    comsat
    login             513/tcp                           #Remote Login
    who               513/udp    whod
    cmd               514/tcp    shell
    syslog            514/udp
    printer           515/tcp    spooler
    talk              517/udp
    ntalk             518/udp
    efs               520/tcp                           #Extended File Name Server
    router            520/udp    route routed
    ulp               522/tcp   
    ulp               522/udp   
    timed             525/udp    timeserver
    tempo             526/tcp    newdate
    irc-serv          529/tcp
    irc-serv          529/udp
    courier           530/tcp    rpc
    conference        531/tcp    chat
    netnews           532/tcp    readnews
    netwall           533/udp                           #For emergency broadcasts
    uucp              540/tcp    uucpd
    klogin            543/tcp                           #Kerberos login
    kshell            544/tcp    krcmd                  #Kerberos remote shell
    dhcpv6-client     546/tcp                           #DHCPv6 Client
    dhcpv6-client     546/udp                           #DHCPv6 Client
    dhcpv6-server     547/tcp                           #DHCPv6 Server
    dhcpv6-server     547/udp                           #DHCPv6 Server
    afpovertcp        548/tcp                           #AFP over TCP
    afpovertcp        548/udp                           #AFP over TCP
    new-rwho          550/udp    new-who
    rtsp              554/tcp                           #Real Time Stream Control Protocol
    rtsp              554/udp                           #Real Time Stream Control Protocol
    remotefs          556/tcp    rfs rfs_server
    rmonitor          560/udp    rmonitord
    monitor           561/udp
    nntps             563/tcp    snntp                  #NNTP over TLS/SSL
    nntps             563/udp    snntp                  #NNTP over TLS/SSL
    whoami            565/tcp
    whoami            565/udp
    ms-shuttle        568/tcp                           #Microsoft shuttle
    ms-shuttle        568/udp                           #Microsoft shuttle
    ms-rome           569/tcp                           #Microsoft rome
    ms-rome           569/udp                           #Microsoft rome
    http-rpc-epmap    593/tcp                           #HTTP RPC Ep Map
    http-rpc-epmap    593/udp                           #HTTP RPC Ep Map
    hmmp-ind          612/tcp                           #HMMP Indication
    hmmp-ind          612/udp                           #HMMP Indication
    hmmp-op           613/tcp                           #HMMP Operation
    hmmp-op           613/udp                           #HMMP Operation
    ldaps             636/tcp    sldap                  #LDAP over TLS/SSL
    doom              666/tcp                           #Doom Id Software
    doom              666/udp                           #Doom Id Software
    msexch-routing    691/tcp                           #MS Exchange Routing
    msexch-routing    691/udp                           #MS Exchange Routing
    kerberos-adm      749/tcp                           #Kerberos administration
    kerberos-adm      749/udp                           #Kerberos administration
    kerberos-iv       750/udp                           #Kerberos version IV
    mdbs_daemon       800/tcp
    mdbs_daemon       800/udp
    ftps-data         989/tcp                           #FTP data, over TLS/SSL
    ftps              990/tcp                           #FTP control, over TLS/SSL
    telnets           992/tcp                           #Telnet protocol over TLS/SSL
    imaps             993/tcp                           #IMAP4 protocol over TLS/SSL
    ircs              994/tcp                           #IRC protocol over TLS/SSL
    pop3s             995/tcp    spop3                  #pop3 protocol over TLS/SSL (was spop3)
    pop3s             995/udp    spop3                  #pop3 protocol over TLS/SSL (was spop3)
    kpop             1109/tcp                           #Kerberos POP
    nfsd-status      1110/tcp                           #Cluster status info
    nfsd-keepalive   1110/udp                           #Client status info
    nfa              1155/tcp                           #Network File Access
    nfa              1155/udp                           #Network File Access
    activesync       1034/tcp                           #ActiveSync Notifications
    phone            1167/udp                           #Conference calling
    opsmgr           1270/tcp                           #Microsoft Operations Manager
    opsmgr           1270/udp                           #Microsoft Operations Manager
    ms-sql-s         1433/tcp                           #Microsoft-SQL-Server
    ms-sql-s         1433/udp                           #Microsoft-SQL-Server
    ms-sql-m         1434/tcp                           #Microsoft-SQL-Monitor
    ms-sql-m         1434/udp                           #Microsoft-SQL-Monitor               
    ms-sna-server    1477/tcp
    ms-sna-server    1477/udp
    ms-sna-base      1478/tcp
    ms-sna-base      1478/udp
    wins             1512/tcp                           #Microsoft Windows Internet Name Service
    wins             1512/udp                           #Microsoft Windows Internet Name Service
    ingreslock       1524/tcp    ingres
    stt              1607/tcp
    stt              1607/udp
    l2tp             1701/udp                           #Layer Two Tunneling Protocol
    pptconference    1711/tcp
    pptconference    1711/udp
    pptp             1723/tcp                           #Point-to-point tunnelling protocol
    msiccp           1731/tcp
    msiccp           1731/udp
    remote-winsock   1745/tcp
    remote-winsock   1745/udp
    ms-streaming     1755/tcp
    ms-streaming     1755/udp
    msmq             1801/tcp                           #Microsoft Message Queue
    msmq             1801/udp                           #Microsoft Message Queue
    radius           1812/udp                           #RADIUS authentication protocol
    radacct          1813/udp                           #RADIUS accounting protocol
    msnp             1863/tcp
    msnp             1863/udp
    ssdp             1900/tcp
    ssdp             1900/udp
    close-combat     1944/tcp
    close-combat     1944/udp
    nfsd             2049/udp    nfs                    #NFS server
    knetd            2053/tcp                           #Kerberos de-multiplexor
    mzap             2106/tcp                           #Multicast-Scope Zone Announcement Protocol
    mzap             2106/udp                           #Multicast-Scope Zone Announcement Protocol
    qwave            2177/tcp                           #QWAVE
    qwave            2177/udp                           #QWAVE Experiment Port
    directplay       2234/tcp                           #DirectPlay
    directplay       2234/udp                           #DirectPlay
    ms-olap3         2382/tcp                           #Microsoft OLAP 3
    ms-olap3         2382/udp                           #Microsoft OLAP 3
    ms-olap4         2383/tcp                           #Microsoft OLAP 4
    ms-olap4         2383/udp                           #Microsoft OLAP 4
    ms-olap1         2393/tcp                           #Microsoft OLAP 1
    ms-olap1         2393/udp                           #Microsoft OLAP 1
    ms-olap2         2394/tcp                           #Microsoft OLAP 2
    ms-olap2         2394/udp                           #Microsoft OLAP 2
    ms-theater       2460/tcp
    ms-theater       2460/udp
    wlbs             2504/tcp                           #Microsoft Windows Load Balancing Server
    wlbs             2504/udp                           #Microsoft Windows Load Balancing Server
    ms-v-worlds      2525/tcp                           #Microsoft V-Worlds
    ms-v-worlds      2525/udp                           #Microsoft V-Worlds
    sms-rcinfo       2701/tcp                           #SMS RCINFO
    sms-rcinfo       2701/udp                           #SMS RCINFO
    sms-xfer         2702/tcp                           #SMS XFER
    sms-xfer         2702/udp                           #SMS XFER
    sms-chat         2703/tcp                           #SMS CHAT
    sms-chat         2703/udp                           #SMS CHAT
    sms-remctrl      2704/tcp                           #SMS REMCTRL
    sms-remctrl      2704/udp                           #SMS REMCTRL
    msolap-ptp2      2725/tcp                           #MSOLAP PTP2
    msolap-ptp2      2725/udp                           #MSOLAP PTP2
    icslap           2869/tcp
    icslap           2869/udp
    cifs             3020/tcp
    cifs             3020/udp
    xbox             3074/tcp                           #Microsoft Xbox game port
    xbox             3074/udp                           #Microsoft Xbox game port
    ms-dotnetster    3126/tcp                           #Microsoft .NET ster port
    ms-dotnetster    3126/udp                           #Microsoft .NET ster port
    ms-rule-engine   3132/tcp                           #Microsoft Business Rule Engine Update Service
    ms-rule-engine   3132/udp                           #Microsoft Business Rule Engine Update Service
    msft-gc          3268/tcp                           #Microsoft Global Catalog
    msft-gc          3268/udp                           #Microsoft Global Catalog
    msft-gc-ssl      3269/tcp                           #Microsoft Global Catalog with LDAP/SSL
    msft-gc-ssl      3269/udp                           #Microsoft Global Catalog with LDAP/SSL
    ms-cluster-net   3343/tcp                           #Microsoft Cluster Net
    ms-cluster-net   3343/udp                           #Microsoft Cluster Net
    ms-wbt-server    3389/tcp                           #MS WBT Server
    ms-wbt-server    3389/udp                           #MS WBT Server
    ms-la            3535/tcp                           #Microsoft Class Server
    ms-la            3535/udp                           #Microsoft Class Server
    pnrp-port        3540/tcp                           #PNRP User Port
    pnrp-port        3540/udp                           #PNRP User Port
    teredo           3544/tcp                           #Teredo Port
    teredo           3544/udp                           #Teredo Port
    p2pgroup         3587/tcp                           #Peer to Peer Grouping
    p2pgroup         3587/udp                           #Peer to Peer Grouping
    upnp-discovery   3702/tcp                           #UPNP v2 Discovery
    dvcprov-port     3776/tcp                           #Device Provisioning Port
    dvcprov-port     3776/udp                           #Device Provisioning Port
    msfw-control     3847/tcp                           #Microsoft Firewall Control
    msdts1           3882/tcp                           #DTS Service Port
    sdp-portmapper   3935/tcp                           #SDP Port Mapper Protocol
    sdp-portmapper   3935/udp                           #SDP Port Mapper Protocol
    net-device       4350/tcp                           #Net Device
    net-device       4350/udp                           #Net Device
    ipsec-msft       4500/tcp                           #Microsoft IPsec NAT-T
    ipsec-msft       4500/udp                           #Microsoft IPsec NAT-T
    llmnr            5355/tcp                           #LLMNR
    llmnr            5355/udp                           #LLMNR
    rrac             5678/tcp                           #Remote Replication Agent Connection
    rrac             5678/udp                           #Remote Replication Agent Connection
    dccm             5679/tcp                           #Direct Cable Connect Manager
    dccm             5679/udp                           #Direct Cable Connect Manager
    ms-licensing     5720/tcp                           #Microsoft Licensing
    ms-licensing     5720/udp                           #Microsoft Licensing
    directplay8      6073/tcp                           #DirectPlay8
    directplay8      6073/udp                           #DirectPlay8
    man              9535/tcp                           #Remote Man Server
    rasadv           9753/tcp
    rasadv           9753/udp
    imip-channels   11320/tcp                           #IMIP Channels Port
    imip-channels   11320/udp                           #IMIP Channels Port
    directplaysrvr  47624/tcp                           #Direct Play Server
    directplaysrvr  47624/udp                           #Direct Play Server
    sql6          7210/tcp
    sapdbni72          7269/tcp
    sapdp00  3200/tcp
    sapdp01  3201/tcp
    sapdp02  3202/tcp
    sapdp03  3203/tcp
    sapdp04  3204/tcp
    sapdp05  3205/tcp
    sapdp06  3206/tcp
    sapdp07  3207/tcp
    sapdp08  3208/tcp
    sapdp09  3209/tcp
    sapdp10  3210/tcp
    sapdp11  3211/tcp
    sapdp12  3212/tcp
    sapdp13  3213/tcp
    sapdp14  3214/tcp
    sapdp15  3215/tcp
    sapdp16  3216/tcp
    sapdp17  3217/tcp
    sapdp18  3218/tcp
    sapdp19  3219/tcp
    sapdp20  3220/tcp
    sapdp21  3221/tcp
    sapdp22  3222/tcp
    sapdp23  3223/tcp
    sapdp24  3224/tcp
    sapdp25  3225/tcp
    sapdp26  3226/tcp
    sapdp27  3227/tcp
    sapdp28  3228/tcp
    sapdp29  3229/tcp
    sapdp30  3230/tcp
    sapdp31  3231/tcp
    sapdp32  3232/tcp
    sapdp33  3233/tcp
    sapdp34  3234/tcp
    sapdp35  3235/tcp
    sapdp36  3236/tcp
    sapdp37  3237/tcp
    sapdp38  3238/tcp
    sapdp39  3239/tcp
    sapdp40  3240/tcp
    sapdp41  3241/tcp
    sapdp42  3242/tcp
    sapdp43  3243/tcp
    sapdp44  3244/tcp
    sapdp45  3245/tcp
    sapdp46  3246/tcp
    sapdp47  3247/tcp
    sapdp48  3248/tcp
    sapdp49  3249/tcp
    sapdp50  3250/tcp
    sapdp51  3251/tcp
    sapdp52  3252/tcp
    sapdp53  3253/tcp
    sapdp54  3254/tcp
    sapdp55  3255/tcp
    sapdp56  3256/tcp
    sapdp57  3257/tcp
    sapdp58  3258/tcp
    sapdp59  3259/tcp
    sapdp60  3260/tcp
    sapdp61  3261/tcp
    sapdp62  3262/tcp
    sapdp63  3263/tcp
    sapdp64  3264/tcp
    sapdp65  3265/tcp
    sapdp66  3266/tcp
    sapdp67  3267/tcp
    sapdp68  3268/tcp
    sapdp69  3269/tcp
    sapdp70  3270/tcp
    sapdp71  3271/tcp
    sapdp72  3272/tcp
    sapdp73  3273/tcp
    sapdp74  3274/tcp
    sapdp75  3275/tcp
    sapdp76  3276/tcp
    sapdp77  3277/tcp
    sapdp78  3278/tcp
    sapdp79  3279/tcp
    sapdp80  3280/tcp
    sapdp81  3281/tcp
    sapdp82  3282/tcp
    sapdp83  3283/tcp
    sapdp84  3284/tcp
    sapdp85  3285/tcp
    sapdp86  3286/tcp
    sapdp87  3287/tcp
    sapdp88  3288/tcp
    sapdp89  3289/tcp
    sapdp90  3290/tcp
    sapdp91  3291/tcp
    sapdp92  3292/tcp
    sapdp93  3293/tcp
    sapdp94  3294/tcp
    sapdp95  3295/tcp
    sapdp96  3296/tcp
    sapdp97  3297/tcp
    sapdp98  3298/tcp
    sapdp99  3299/tcp
    sapgw00  3300/tcp
    sapgw01  3301/tcp
    sapgw02  3302/tcp
    sapgw03  3303/tcp
    sapgw04  3304/tcp
    sapgw05  3305/tcp
    sapgw06  3306/tcp
    sapgw07  3307/tcp
    sapgw08  3308/tcp
    sapgw09  3309/tcp
    sapgw10  3310/tcp
    sapgw11  3311/tcp
    sapgw12  3312/tcp
    sapgw13  3313/tcp
    sapgw14  3314/tcp
    sapgw15  3315/tcp
    sapgw16  3316/tcp
    sapgw17  3317/tcp
    sapgw18  3318/tcp
    sapgw19  3319/tcp
    sapgw20  3320/tcp
    sapgw21  3321/tcp
    sapgw22  3322/tcp
    sapgw23  3323/tcp
    sapgw24  3324/tcp
    sapgw25  3325/tcp
    sapgw26  3326/tcp
    sapgw27  3327/tcp
    sapgw28  3328/tcp
    sapgw29  3329/tcp
    sapgw30  3330/tcp
    sapgw31  3331/tcp
    sapgw32  3332/tcp
    sapgw33  3333/tcp
    sapgw34  3334/tcp
    sapgw35  3335/tcp
    sapgw36  3336/tcp
    sapgw37  3337/tcp
    sapgw38  3338/tcp
    sapgw39  3339/tcp
    sapgw40  3340/tcp
    sapgw41  3341/tcp
    sapgw42  3342/tcp
    sapgw43  3343/tcp
    sapgw44  3344/tcp
    sapgw45  3345/tcp
    sapgw46  3346/tcp
    sapgw47  3347/tcp
    sapgw48  3348/tcp
    sapgw49  3349/tcp
    sapgw50  3350/tcp
    sapgw51  3351/tcp
    sapgw52  3352/tcp
    sapgw53  3353/tcp
    sapgw54  3354/tcp
    sapgw55  3355/tcp
    sapgw56  3356/tcp
    sapgw57  3357/tcp
    sapgw58  3358/tcp
    sapgw59  3359/tcp
    sapgw60  3360/tcp
    sapgw61  3361/tcp
    sapgw62  3362/tcp
    sapgw63  3363/tcp
    sapgw64  3364/tcp
    sapgw65  3365/tcp
    sapgw66  3366/tcp
    sapgw67  3367/tcp
    sapgw68  3368/tcp
    sapgw69  3369/tcp
    sapgw70  3370/tcp
    sapgw71  3371/tcp
    sapgw72  3372/tcp
    sapgw73  3373/tcp
    sapgw74  3374/tcp
    sapgw75  3375/tcp
    sapgw76  3376/tcp
    sapgw77  3377/tcp
    sapgw78  3378/tcp
    sapgw79  3379/tcp
    sapgw80  3380/tcp
    sapgw81  3381/tcp
    sapgw82  3382/tcp

    Hi,
    I had the same problem, but i didn't get any answer in that forum.
    I deinstalled the SAP Software (regard the end of the threat
    https://forums.sdn.sap.com/click.jspa?searchID=22036513&messageID=6625975) and then I installed the software again. Then the system ran and i didn't have any more problems with the message server.
    I didn't installed the MS Loopback Adapter, because i am connected to a network.
    Best regards,
    Günther Klee

Maybe you are looking for