Can a Selector listen on 2 ports?

Hi.
Can a Selector thread, listen on 2 ports, making a tcp server that accepts connections on 2 ports?
Thanks.

tpmaster wrote:
Hi.
Can a Selector thread, listen on 2 ports, making a tcp server that accepts connections on 2 ports?
Thanks.Sure you can; register the ServerSocketChannels at the Selector and off you go.
kind regards,
Jos

Similar Messages

  • Can imapd listen on multiple ports?

    For historical reasons, we've got some multiplexors that expect to make the back-end imap connecto to port 993, and some others that want to talk to 994. Is it possible to configure imapd to listen on multiple ports?
    Thanks!

    I just realized this would be doable if the MMP would do STARTTLS to the back-end (since then I could enable STARTTLS on the default port and keep SSL on connect on the other port).
    If only.....

  • Please help me creating a new listener with different port#.

    I have two instances in a server. both have different homes. I want to create a seperate listener for the second one i created.
    But that is not happening.
    here i tried to give name from LISTENER TO LISTENER1 & Port# from 1521 to 1524.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /apps2/oracle)
    (PROGRAM = extproc)
    LISTENER1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = aixth53)(PORT = 1524))
    When I check lsnrctl status with LISTENER1 , it still shows the other instance home with port#: 1521
    Please help me creating a new listener with different port#.
    Thanks,

    marist89 wrote:
    sb92075 wrote:
    marist89 wrote:
    sybrand_b wrote:
    The listener is a broker only and doesn't play any role in normal communications.
    It just forks a process or a thread, and that's it.And the listener is a single point of failure. Listener goes down, you can't connect to the db. That's why you need two listeners.If listener one goes down, then listener two goes down for exact same reason since it is a single executable file.I'm not playing tit-for-tat with you. Fact is, there are situations where people who are not you might want to use more than one listener.Some folks might want to jab a sharp pencil into their eye, too.
    Just because you can do something, it does not necessarily mean it should be done.

  • If port is unavailable then which service is listening on that port

    hi all
    I am writing one module to check 1) which ports are available in system and 2) if port is unavailable then which service is listening on that port. I want to run that module on Windows platform and also UNIX platform.
    I have done first part but i am not finding way to do the second part. Is there any way in Java or any other prog language (C, C++) to do so. please share idea or code i am awaiting for response.
    Thanks in advance :)
    Message was edited by:
    Codeword_Swan

    Under Unix there is the command "fuser" to tell which process has open a given file. With -n you can tell another space like tcp for sockets. Thus:
    $  fuser -n tcp 7777
    here: 7777
    7777/tcp:             3753
    $ ps -p 3753 -f
    UID        PID  PPID  C STIME TTY          TIME CMD
    oracle    3753  3722  0 Aug28 ?        00:00:53 /opt/oracle/product/AS/10g/R2/webcache/bin/webcached -OPMN -U 1325072547

  • I can't start listener in the Control Painel/Admin Tools/ Services

    Windows XP - Home Edition (I know it´s not the better but came with my laptop)
    I installed the Oracle 10g and I don't know why I have 3 listener as services. Its services showed me different messages when I tried start it:
    1. OracleOraDb10g_home1TNSListener: Could not start the 2. OracleOraDb10g_home1TNSListener service on Local Computer
    2. OracleOraDb10g_home1TNSListenerORCL: The OracleOraDb10g_home1TNSListenerORCL service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performace Logs and Alerts service
    3. OracleOraDb10g_home1TNSListenerSID_LIST_LISTENER: The OracleOraDb10g_home1TNSListenerSID_LIST_LISTENER service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performace Logs and Alerts service
    ====PATH======
    Path=C:\oracle\product\10.1.0\Db_3\bin;C:\Program Files\oracle 8i\bin;C:\oracle\
    product\10.1.0\Db_3\jdk\jre\bin;C:\oracle\product\10.1.0\Db_3\jdk\jre\bin\classi
    c;C:\oracle\product\10.1.0\Db_3\jdk\jre\bin\classic;C:\oracle\product\10.1.0\Db_
    3\jlib;C:\oracle\product\10.1.0\Db_3\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C
    :\oracle\product\10.1.0\Db_3\jre\1.4.2\bin\client;C:\oracle\product\10.1.0\Db_3\
    jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
    Files\ATI Technologies\ATI Control Panel;%java_home%\bin;C:\Program Files\Commo
    n Files\Ulead Systems\MPEG;C:\WINDOWS\system32\gs\gs8.13\bin
    ====REGISTRY======
    TNS_ADMIN I set as Binary Data in the HKEY_CURRENT_USER\Environment with the path C:\oracle\product\10.1.0\Db_3\NETWORK\ADMIN
    ====LISTENER.ORA======
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.1.0\Db_3)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.17)(PORT = 1521))
    ====TNSNAMES.ORA========
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ====SQL.ORA========
    NAMES.DEFAULT_DOMAIN = 192.168.0.17
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    =======OS CONFIGURATION================
    C:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 23-MAR-2006 08:23
    :44
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.17)(PORT=1521)
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    C:\>ipconfig
    Windows IP Configuration
    Ethernet adapter Local Area Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Ethernet adapter Wireless Network Connection 2:
    Connection-specific DNS Suffix . : myhome.westell.com
    IP Address. . . . . . . . . . . . : 192.168.0.17
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.0.1
    C:\>
    Please, if somebody knows this problem I need a very urgent help. Thank you very much.

    Thanks ALL, I GOT IT, but I used other solution.
    Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
    Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
    (C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
    I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
    success.
    Appreciate your time!!

  • How do I set an x-net can interface to listen-onl​y in Veristand?

    How can I set an X-NET CAN interface to listen-only mode, i.e. to not send any acknowledgements, in Veristand 2012?
    I can't find "Listen Only" as an option under Targets->..->Hardware->NI-XNET->CAN->CAN1->CAN Port Settings.
    Thanks,
    Ken

    Hi Ken,
    I did some checking with some of my colleagues to make sure, but it sounds like you will have to create a custom device that does not send ACK messages on the bus.  The X-Net Bus Monitor does in fact send out ACK messages when it is monitoring the bus, so the only way to stop this from happening is to create your own method.  The documentation below outlines the process for creating a custom device, but we do not have guidelines for performing the specific task you are trying to accomplish.  Additionally, you could check around on our forums to see if anyone has implemented something similar.  
    Building Custom Devices for NI VeriStand
    NI VeriStand Custom Device Developer’s Guide
    | Zach J. | Applications Engineer | National Instruments |

  • Question: one weblogic server listening on several port

    can i start one weblogic server that listening on several port, one for
    different application?
    for example,
    7001 for general user, and
    7005 for admistrators and ask for two way authentification?
    can i do this? or do i have to start two weblogic instance? does that
    violate it's license for one computer and one ip address?
    thank u.

    Ummm.. how would this help security? If I want to bypass authentication, I just go to the unprotected port.
    I don't think you can listen to different ports in the same instance
    . You can listen to different IP addresses in the same instance.
    WL is licensed by CPU so this would not cost any more to license.
    mike
    "Gong Wenxue" <[email protected]> wrote:
    can i start one weblogic server that listening on several port, one for
    different application?
    for example,
    7001 for general user, and
    7005 for admistrators and ask for two way authentification?
    can i do this? or do i have to start two weblogic instance? does that
    violate it's license for one computer and one ip address?
    thank u.

  • Java.rmi.server.ExportException: Listen failed on port: 1099;

    Hi All,
    I am trying to run RMI tutorial from sun's java tutorial. It has 8 parts. The last two parts are "Compiling the Example Programs" and "Running the Example Programs".
    Until "Compiling the Example Programs", I am okay.
    But I am stuck in the last part, "Running the Example Programs". When I use the command "rmiregistry", it gives me a list of exceptions as follows.
    c:\home\ann\src>rmiregistry
    java.rmi.server.ExportException: Listen failed on port: 1099; nested exception is:
    java.net.SocketException: Permission denied: listen failed
    at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:312)
    at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
    at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
    at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
    at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
    at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
    at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
    at sun.rmi.registry.RegistryImpl.main(RegistryImpl.java:322)
    Caused by: java.net.SocketException: Permission denied: listen failed
    at java.net.PlainSocketImpl.socketListen(Native Method)
    at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:380)
    at java.net.ServerSocket.bind(ServerSocket.java:320)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at java.net.ServerSocket.<init>(ServerSocket.java:97)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:27)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:333)
    at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
    at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
    ... 7 more
    c:\home\ann\src>
    Then, I try to use "start rmiregistry" command. At that time, a command window stating the above exception popup just for a while and closed automatically.
    Now, I use jdk1.6.0_16 on Windows Vista.
    Previously, I used j2sdk1.4.2_19. That time, I could run "start rmiregistry" properly and could try testing another RMI example application.
    But if I use j2sdk1.4.2_19, compiling some statements in the sun's RMI tutorial gives me error. So, I change to use jdk1.6.0_16 for this tutorial. "jdk1.6.0_16" compiles all programs in the tutorial with no error. But I can't run the statement "start rmiregistry".
    I use the command prompt from Vista's default Administrator account and already disable User Account Control too.
    Any help, please!
    Thanks a lot,
    atzm111

    Hi,
    This is the result of netstat -an
    c:\home\ann\src>netstat -an
    Active Connections
    Proto Local Address Foreign Address State
    TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2868 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:3999 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:49153 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:49154 0.0.0.0:0 LISTENING
    TCP 192.168.1.102:139 0.0.0.0:0 LISTENING
    TCP 192.168.1.102:49475 64.233.189.17:80 ESTABLISHED
    TCP 192.168.1.102:49620 64.233.189.83:80 ESTABLISHED
    TCP 192.168.1.102:49625 72.5.124.102:80 ESTABLISHED
    TCP 192.168.1.102:49626 72.5.124.102:80 ESTABLISHED
    TCP 192.168.1.102:49627 72.5.124.102:80 ESTABLISHED
    TCP 192.168.1.102:49628 72.5.124.102:80 ESTABLISHED
    TCP 192.168.1.102:49629 72.5.124.102:80 ESTABLISHED
    TCP 192.168.1.102:49631 72.5.124.61:80 TIME_WAIT
    TCP 192.168.1.102:49634 124.155.222.16:80 ESTABLISHED
    TCP [::]:135 [::]:0 LISTENING
    TCP [::]:49152 [::]:0 LISTENING
    TCP [::]:49153 [::]:0 LISTENING
    TCP [::]:49154 [::]:0 LISTENING
    UDP 0.0.0.0:123 *:*
    UDP 0.0.0.0:500 *:*
    UDP 0.0.0.0:4500 *:*
    UDP 0.0.0.0:5355 *:*
    UDP 127.0.0.1:1900 *:*
    UDP 127.0.0.1:51196 *:*
    UDP 127.0.0.1:64757 *:*
    UDP 192.168.1.102:137 *:*
    UDP 192.168.1.102:138 *:*
    UDP 192.168.1.102:1900 *:*
    UDP 192.168.1.102:51195 *:*
    UDP [::]:123 *:*
    UDP [::]:500 *:*
    UDP [::]:5355 *:*
    UDP [::1]:1900 *:*
    UDP [::1]:51193 *:*
    UDP [fe80::100:7f:fffe%16]:1900 *:*
    UDP [fe80::100:7f:fffe%16]:51194 *:*
    UDP [fe80::18c1:1fa4:382b:261%12]:1900 *:*
    UDP [fe80::18c1:1fa4:382b:261%12]:51191 *:*
    UDP [fe80::69bc:321e:5e99:dc7c%11]:1900 *:*
    UDP [fe80::69bc:321e:5e99:dc7c%11]:51192 *:*
    UDP [fe80::a0a0:89c2:b2fd:e4b9%13]:1900 *:*
    UDP [fe80::a0a0:89c2:b2fd:e4b9%13]:51190 *:*
    c:\home\ann\src>
    So, port 1099 is not in use. I don't know how to check your second fact. I'll find it out coz I can't ask you. :D
    Thanks!

  • Listening to multiple ports(socets) for data?

    I know that this topic has been covered before, but is either simplistic questions or overly complex things (that I don't understand... yet)
    Here is my issue: I have data coming from two ports (TCP/IP) an array of 210 bytes and I'm not sure which port will be activated first. The data is asyncronus. So basically I want to figure out how to listen to the ports. I have this code...
    import java.io.*;
    import java.util.*;
    import java.net.*;
    public class SocketListener{
        public static void main(String[] argv){
            ServerSocket mySocket = null;
            ServerSocket mySocket2 = null;
            try {
                mySocket=new ServerSocket(12000);
                mySocket2= new ServerSocket (13000);
            catch (IOException e){
                System.err.println("error");
                System.exit(-1);
            try {
                Socket client = mySocket.accept();
                System.out.println("The server has connected to 12000\n");
                // do what I need it to do a.k.a. get data array
                client.close();
            catch(IOException e){
                System.err.println("error");
                System.exit(-1);
            try {
                Socket client2 = mySocket2.accept();
                System.out.println("The server has connected to 13000\n");
                // do what I need it to do a.k.a. get data array
                client2.close();
            catch (IOException e){
                System.err.println("error");
                System.exit(-1);
    }I'm not sure if it works or not... but thats what I got. Is this the best way to go about this or is there something else that I should look up in documentation / look for examples / someone might have a link to something.
    Thanks a lot!!!!
    Edited by: KTLightning on Sep 12, 2007 1:25 PM

    There are two issues at hand here, one being networking and the second being threading. Threading is an extensive subject and I don't want to shortchange you here, so you may want to read this tutorial if you are not familiar with Java threading concepts: http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html
    That being said, if you want to concurrently listen to the sockets, you will need a thread for each socket you are listening. Otherwise you can use Java NIO, but unless you are going to be listening to many sockets at once, this complication is not necessary since the learning curve of Java NIO can be quite steep.
    You might want to start out creating a new class that will handle the task of listening to a socket and retrieving the data in its own thread. You can do this by either extending the Thread class or implementing the Runnable interface. From your main class, you can then spawn as many of those objects as you need. The trick to this approach is knowing when the data has been read from the socket and stored in the object. For only two objects this is simple as you can have a hasData() method on your worker objects and then just put a loop in your main class checking to see if the condition has been met on the objects.
    Here's some code fragments as an example...
    public class SocketReader extends Thread ...
    ServerSocket ss = null;
    boolean hasData = false;
    SocketReader(int port) {
    ss = new ServerSocket(port);
    public void run() {
    ss.accept();
    // do your stuff
    hasData =true;
    public boolean hasData() {
    return hasData;
    main() {
    SocketReader sr1 = new SocketReader(12000);
    SocketReader sr2 = new SocketReader(12000);
    sr1.start();
    sr2.start();
    // keep looping until we have data in both
    while (!sr1.hasData() && !sr2.hasData()) {
    try {
    Thread.sleep(100);
    } catch (InterrruptedException ie) {/ do something}
    } // end main
    Keep in mind that this is a very simplistic example to demonstrate the concepts and would not be a good design for pretty much any other case.

  • One weblogic instance listening to multiple ports

    I'd like to run weblogic with its http subsysten listen to port 80.
    Any other service should listen to port 7001.
    Is it really impossible to let weblogic do this?
    Are there any plans to implement such a feature?
    Which alternatives do exist?
    TIA
    klaus

    No, it is impossible.
    Alternatives: use IIS/Apache/NES to listen to port 90, and use weblogic
    plugin to proxy request to WLAS (7001).
    Still, you can use one WLAS listent to port 80, and use HttpClusterServlet
    to proxy requests to another WLAS (7001)
    Cheers - Wei
    Klaus Pittig <[email protected]> wrote in message news:[email protected]..
    I'd like to run weblogic with its http subsysten listen to port 80.
    Any other service should listen to port 7001.
    Is it really impossible to let weblogic do this?
    Are there any plans to implement such a feature?
    Which alternatives do exist?
    TIA
    klaus

  • How to extract Weblogic Listen Address and port.

    Hi All,
    I want to extract Weblogic Admin server's Listen address and port via Java to perform some admin actions.
    Can someone please help on this.
    Thanks,
    GJ

    Hi,
    Try this code.
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.util.Hashtable;
    import javax.management.MBeanServerConnection;
    import javax.management.MalformedObjectNameException;
    import javax.management.ObjectName;
    import javax.management.remote.JMXConnector;
    import javax.management.remote.JMXConnectorFactory;
    import javax.management.remote.JMXServiceURL;
    import javax.naming.Context;
    import java.lang.*;
    public class ServerDetails
    private static MBeanServerConnection connection;
    private static JMXConnector connector;
    private static final ObjectName service;
    static
    try {
    service=new ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
    catch (MalformedObjectNameException e)
    throw new AssertionError(e.getMessage());
    public static void initConnection(String hostname, String portString,String username, String password) throws IOException,MalformedURLException
    System.out.println("ServerDetails---Started in initConnection");
    String protocol="t3";
    Integer portInteger=Integer.valueOf(portString);
    int port=portInteger.intValue();
    String jndiroot="/jndi/";
    String mserver="weblogic.management.mbeanservers.domainruntime";
    JMXServiceURL serviceURL=new JMXServiceURL(protocol, hostname,port, jndiroot + mserver);
    Hashtable h=new Hashtable();
    h.put(Context.SECURITY_PRINCIPAL, username);
    h.put(Context.SECURITY_CREDENTIALS, password);
    h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,"weblogic.management.remote");
    connector=JMXConnectorFactory.connect(serviceURL, h);
    connection=connector.getMBeanServerConnection();
    public static ObjectName[] getServerRuntimes() throws Exception
    return (ObjectName[]) connection.getAttribute(service,"ServerRuntimes");
    public void printServerDetails() throws Exception
    ObjectName[] serverRT=getServerRuntimes();
    for (int i=0;i < serverRT.length;i++)
    String name=(String)connection.getAttribute(serverRT,"Name");
    String listenAddress=(String)connection.getAttribute(serverRT[i],"ListenAddress");
    Integer listenPort=(Integer)connection.getAttribute(serverRT[i],"ListenPort");
    System.out.println("Server Name : " + name +"\t Address: "+listenAddress+"\t Port: "+listenPort);
    public static void main(String[] args) throws Exception
    System.out.println("ServerDetails---Started");
    String hostname=args[0];
    String portString=args[1];
    String username=args[2];
    String password=args[3];
    System.out.println("Hostname : " + hostname);
    System.out.println("PortString : " + portString);
    System.out.println("Username : " + username);
    System.out.println("Password : " + password);
    ServerDetails sd=new ServerDetails();
    initConnection(hostname, portString, username, password);
    sd.printServerDetails();
    connector.close();
    Regards,
    Kal

  • Mac mail service isnt listening on default ports at all other than SMTP

    Mac mail service isnt listening on default ports at all other than SMTP.
    I can port scan locally and here is what's listening
    Port Scan has started…
    Port Scanning host: <IPADDRESS>
         Open TCP Port:     25             smtp
         Open TCP Port:     53             domain
         Open TCP Port:     80             http
         Open TCP Port:     88             kerberos
         Open TCP Port:     106            3com-tsmux
         Open TCP Port:     311            asip-webadmin
         Open TCP Port:     389            ldap
         Open TCP Port:     443            https
         Open TCP Port:     464            kpasswd
         Open TCP Port:     587            submission
         Open TCP Port:     625            dec_dlm
         Open TCP Port:     749            kerberos-adm
    Port Scan has completed…
    Mail service is on.

    first place to start is always /var/log/system.log
    stop/start mail service while watching that log.
    You will probably catch some dovecot/imap lines that will yield clues.
    Post results.

  • Listen on two ports on the cfp

    I tried posting this in the cFP forum, but I didn't get an answer, so I figured I try here.  I have tried to do this twice, and neither time did it work.  On a cFP 21xx is it possible to listen on two ports, using TCP over ethernet, at the same time?  Or is it possible to talk on one port and listen on another?  I know this is not standard, and it seems not to work, but I can't figure out a reason why not.  Is it possible, or is there something in the cFP that prevents this type of communication system from working?
    Regards,
    Jo-Jo

    Hi Jo-Jo,
    I posted an answer to this question in your original post listen on two ports on one cFP.
    Please refrain from posting the same question to several forums. If you are not getting an answer in one forum please repost to notify any new browsers of the question. This keeps several people from the same answer several times in different places.
    Michael K | Applications Engineer | National Instruments.
    | Michael K | Project Manager | LabVIEW R&D | National Instruments |

  • Configure Virtual Host to Listen on Two Ports

    Oracle App Server 9.0.4
    I need my mid-tier HTTP server to listen for SSL traffic on 2 ports: 443 and 4443. I also need it to listen for non-SSL traffic on port 80 (this traffic should only come from localhost).
    We have an SSL certificate for our web address already and unfortunately it will take quite a while to get another certificate, so I'd prefer not to have to setup a different url for the second SSL port if I can help it.
    Currently there is one virtual host set as type default.
    The Virtual Hosts properties page provides the following 3 options for Listening Ports (host is set for https protocol):
    (1) Listen on all main ports
    (2) Listen on specific port (443 by default)
    (3) Listen only on the main server default port
    If I set it to option (1) then the server will not respond on port 80 for non-SSL traffic.
    If I set it to option (2) then it will not respond to ssl traffic on port 4443.
    If I set it to option (3) then it is listening on port 80 only (the default port for the HTTP server)
    Is there a way to have this default virtual host listen to both 443 and 4443 for SSL traffic and non-SSL traffic on 80?
    Appreciate your time.
    Message was edited by:
    dredstar

    Thanks for the reply Kjell, I ended up doing the same thing. I left my default host servicing all ports with https, so it would respond to incoming requests on ports 443 and 4443. Then I created a new http protocol virtual host listening only on 127.0.0.1 port 80 and that allowed non-SSL traffic to be serviced coming from the machine itself.

  • SocketServer Listen on Multiple Ports

    What is the optimal way to have a SocketServer listen on more than one IP/port combination? I'm looking for various ways of doing this including a quick and easy way and the best-practices way.
    Thanks.

    There is no way to 'have a SocketServer listen on more than one IP/port combination'. A SocketServer can only listen at one port. You need multiple SocketServer objects, and you should use multiple threads executing accept loops.

Maybe you are looking for

  • Unable to set columns under Layout Margins and Columns

    On certain pages in my 40 page document, I am unable to set the number of columns by using Layout>Margins and Columns. The columns option is dimmed out. I have tried to set them on a blank page and pages where columns were previously set (I can see t

  • How do I save bookmark in new firefox release?

    The new firefox release does not seem to have capability to save bookmarks to a file. The instructions provided in support seem applicable to older versions. I have saved bookmarks to a file many times before in prior releases.

  • 8.02 updater not installing

    Hello experts. I have successfully downloaded and installed the v8.02 updater to my fixed PC. Works great. However, I have also tried to download/install to my laptop, to no avail. The installation goes through the motions, but when I open DW, 8.0 is

  • Iphone 5 not charging blinking empty battery, lightning bolt and plug

    My battery went low, to 1% and kept working for about 30 minutes. When I got home it was showing the "charge me now". Now its just blinking "charge me" for 4 seconds, going black for 4 seconds.

  • Iweb site won't open

    my iweb program will not display site or new site. all in grey. how can i fix this? i have no receord of the site i bulit anywhere else