Question on port

hI all,
I use tomcat before and I use port 80
now I wan to add apach, since the defaul por tis 80 too, so I uninstall tomcat, but when I open my appach I still have can't listen to port 80, is be used ,why??
Thank you

On a *nix box, ports below 1024 are only available to root.
I don't see a straightforward answer from
Google [ [url=http://www.google.com/search?q=running+apache+on+port+80+as+non-root]running apache on port 80 as non-root ]
but it should get you started.

Similar Messages

  • QUICK QUESTION ABOUT PORTS

    Hi, I have a quick question about port forwarding/mapping. My question, lets say I am running MSN messenger, who's ports are 6880-6900. But lets say I am running a torrent application or something else that requires those ports. If both applications were running at the same time, would this cause interference with them on the same ports or now. Thanks
    Nathan

    Normally, only one application can listen to a specific port number at a time. If MSN is grabbing those 21 ports then your torrent app won't be able to run.
    However, most apps don't work that way - even if they use multiple ports, they don't use them all at the same time, so MSN might use 6880 when it starts up, leaving the others open for other applications to use if needed.
    Only experimentation will answer that one.

  • Question about ports

    Hi,
    I have a clarification question about ports and Java. Assuming all firewalls are disabled on a PC, a Java application can connect to any port via a socket to communicate with other PCs, as long as this port is not used by another application.
    Is the following correct:
    a) Two applications (Java or no) cannot connect to the same port together, ever.
    b) Two Java applications sending and receiving datagram over a given multicast address using the same port can never communicate with each other when ran on the same PC because of a).
    Thanks,
    J.

    Jrm wrote:
    Hi,
    I have a clarification question about ports and Java. Assuming all firewalls are disabled on a PC, a Java application can connect to any port via a socket to communicate with other PCs, as long as this port is not used by another application.You mean bind to a port to act as a server? Yes. As long as that port is not already bound for listening.
    If you mean a client application can connect to any port where a server is listening, then it doesn't matter if another client is talking to the server on that port, as long as the server is written to handle concurrent connections.
    >
    Is the following correct:
    a) Two applications (Java or no) cannot connect to the same port together, ever. No, see above. Unless by "connect" you mean "bind". (Even that may be incorrect terminology.)
    b) Two Java applications sending and receiving datagram over a given multicast address using the same port can never communicate with each other when ran on the same PC because of a).Not sure exactly what you're saying here.
    Really, though, why not just write some code and try it?

  • Questions on porting family plan lines and a prorated final bill?

    Hey there! I've done some searches on the board before posting and encountered tidbits of information I found useful, but I couldn't get all of my lingering questions answered from older posts so here's my situation:
    My number is the primary number on a family plan (3 lines, mine included) with Verizon, and I'm considering porting it along with the two other lines elsewhere. All three lines are no longer in a contract and are month-to-month (the 2-year agreements ended many months ago and none of the lines have been upgraded or anything since then). I'm planning to move them all to separate prepaid services through another carrier.
    I'm doing my best to gather enough information about how to go about moving all three of these family plan lines with the least amount of hassle , so I've got some questions I hope I can get answered. Thanks for any assistance!
    This is my understanding:
    -I'll need to contact my new carrier to have a given number ported, correct? And that line will be subsequently cancelled on Verizon's end, with no ETFs since none of the lines are tied to a contract?
    -Should I port the second and third lines first and not port the primary number (mine) first, so asto not cancel all the lines of service before they're ported? I'm okay porting one number at a time AKA separately instead of all at once if that simplifies the transfer process.
    -When the porting process takes place and my Verizon service is cancelled, does Verizon prorate the remaining days on my billing period from the date it's cancelled, or do they still bill up to the end of the cycle? I hear it's better to wait until the end of my billing cycle (which for me is the 9th of every month) to initiate the transfer(s) so that I don't have any billing issues, but moving all three numbers on one day (even separately) sounds kinda daunting. 
    -Do the phones I currently have under Verizon simply "disconnect" or deactivate once service is cancelled? Will they no longer be associated with my family plan lines and therefore be free to be resold or handed off to other family members who are using Verizon? I notice many phones on eBay/Craigslist list a "cleared ESN" as a requirement for someone to activate a used phone on Verizon and wanted to know what that was about.
    Thanks for any help on these concerns!

    michae2414 wrote:
    Hey there! I've done some searches on the board before posting and encountered tidbits of information I found useful, but I couldn't get all of my lingering questions answered from older posts so here's my situation:
    My number is the primary number on a family plan (3 lines, mine included) with Verizon, and I'm considering porting it along with the two other lines elsewhere. All three lines are no longer in a contract and are month-to-month (the 2-year agreements ended many months ago and none of the lines have been upgraded or anything since then). I'm planning to move them all to separate prepaid services through another carrier.
    I'm doing my best to gather enough information about how to go about moving all three of these family plan lines with the least amount of hassle , so I've got some questions I hope I can get answered. Thanks for any assistance!
    This is my understanding:
    -I'll need to contact my new carrier to have a given number ported, correct? And that line will be subsequently cancelled on Verizon's end, with no ETFs since none of the lines are tied to a contract?  All correct - the port happens via the NEW carrier. 
    -Should I port the second and third lines first and not port the primary number (mine) first, so asto not cancel all the lines of service before they're ported? I'm okay porting one number at a time AKA separately instead of all at once if that simplifies the transfer process.  You can do it this way - but based on your next question, you wouldn't want to do it this way.  You can't do both!!
    -When the porting process takes place and my Verizon service is cancelled, does Verizon prorate the remaining days on my billing period from the date it's cancelled, or do they still bill up to the end of the cycle?  You have already paid for the current month's service - you are billed in advance for the coming month.  What WILL be billed is any texting, roaming calls, data charges, etc, that have occurred during the month that were NOT billed in advance. I hear it's better to wait until the end of my billing cycle (which for me is the 9th of every month) to initiate the transfer(s) so that I don't have any billing issues, but moving all three numbers on one day (even separately) sounds kinda daunting.   But YOU don't have to do anything - your new carrier will deal with it, and it seems to me it would be better to end the service on all three at one time, since it is one account.  You can ask your new carrier what they recommend.  There should be no issues with porting all three lines at once.
    -Do the phones I currently have under Verizon simply "disconnect" or deactivate once service is cancelled?Yes - once the number is ported to the new carrier, the phones will no longer work until they are activated with another number.  Will they no longer be associated with my family plan lines and therefore be free to be resold or handed off to other family members who are using Verizon? This is correct, and another reason for doing the port at the end of a billing cycle.  Issues have come up with transfers done mid cycle - and because the account had been billed and paid for the full month's service, the phone's ESN was not released until the end of the billing cycle.  I notice many phones on eBay/Craigslist list a "cleared ESN" as a requirement for someone to activate a used phone on Verizon and wanted to know what that was about.
    Thanks for any help on these concerns!
    It may take several days for the numbers to fully port over and have all services working correctly, and for the old phones to be fully "released" from your account to be used on another Verizon account.  I would wait a week or so after the port, then call CS and check the ESN status of the old phones to see if they are "clear".
    Hope this answers most of your questions.  Post back if you need further clarification.

  • Question about port C++ code to C

    I have a newbie question about C++
    I'm being ask to port a C++ sharelib into a kernel driver for work so from C++ => C.  I'm not at all familiar with C++ but i'm making some leeway.  However i'm a little stuck, what does the following line of code in bold mean in C++ and how would I translate it into C code? 
    #include <deque>
    struct _buffer
        UINT8* buffer;
        UINT8 length;
    typedef deque< struct _buffer* > MSGQUEUE;
    I'm assuming it's type defining a deque of the struct _buffer???  but I'm confused by the <...>, what does that operator do in C++.  Is it defining a struct _buffer pointer within the deque??? 
    This might like a "DUH it means...." question to some people so sorry about the stupid question.
    --Vincent

    <> is template syntax and is generally the type of object a container holds..   So it is defining that the MSGQUEUE type is a deque holding struct_buffer*'s.

  • Question concerning ports used by subdaemons

    We are using direct access, no client server, with TT 6.0.4. TT is installed with port 16200. We see the subdaemons using ports such as
    32814 timestensubd
    32818 timestensubd
    32820 timestensubd
    32822 timestensubd
    Is there anyway to configure which ports are used? If not in 6.0.4, then in 7.0.5 which we will be using in the future?
    Thanks,
    Linda

    There is no way to control the ports used by the sub-daemons. However these ports are alocated dynamically by the O/S and are only used for inter-system communication (i.e. between the local daemon and sub-daemons). Could I ask the rationale behind your question? What concerns/requirements do you have?
    Thanks,
    Chris

  • Nexus 6004: Question about port-profile type port-channel

    I'm setting up a new deployment of Nexus 6004 switches and want to utilize port-profiles as much as possible to simplify management down the road.
    All uplinks to other switches, routers and firewalls will be connected using VPC:s. On the port-channels (vpc) the only thing that will change over time is the allowed vlans.
    It seems that port-profiles of the type port-channel does not behave in the same way as those with type ethernet, at least not when adding vlans.
    If I modify the port-profile using "switchport trunk allowed vlan add XXX" it will delete the previous config and only retain "switchport trunk allowed vlan add XXX", and not merge it with the previous config as is expected. 
    Question: Is this a bug or is it working as intended?
    RH_N6K4_01(config-sync)# switch-profile rh
    Switch-Profile started, Profile ID is 1
    RH_N6K4_01(config-sync-sp)# port-profile type port-channel FIREWALL-UPLINK
    RH_N6K4_01(config-sync-port-prof)# switchport trunk allowed vlan 3
    RH_N6K4_01(config-sync-port-prof)# verify 
    Verification Successful
    RH_N6K4_01(config-sync-sp)# commit
    Verification successful...
    Proceeding to apply configuration. This might take a while depending on amount of configuration in buffer.
    Please avoid other configuration changes during this time.
    Commit Successful
    RH_N6K4_01(config-sync)# show port-profile 
    SHOW PORT_PROFILE
    port-profile FIREWALL-UPLINK
     type: Port-channel
     description: 
     status: enabled
     max-ports: 512
     inherit: 
     config attributes:
      switchport mode trunk
      switchport trunk allowed vlan 3
     evaluated config attributes:
      switchport mode trunk
      switchport trunk allowed vlan 3
     assigned interfaces:
    ===================================
    RH_N6K4_01(config-sync-sp)# port-profile type port-channel FIREWALL-UPLINK
    RH_N6K4_01(config-sync-port-prof)# switchport trunk allowed vlan add 84
    RH_N6K4_01(config-sync-port-prof)# verify 
    Verification Successful
    RH_N6K4_01(config-sync-sp)# commit 
    Verification successful...
    Proceeding to apply configuration. This might take a while depending on amount of configuration in buffer.
    Please avoid other configuration changes during this time.
    Commit Successful
    RH_N6K4_01(config-sync)# show port-profile 
    SHOW PORT_PROFILE
    port-profile FIREWALL-UPLINK
     type: Port-channel
     description: 
     status: enabled
     max-ports: 512
     inherit: 
     config attributes:
      switchport mode trunk
      switchport trunk allowed vlan add 84
     evaluated config attributes:
      switchport mode trunk
      switchport trunk allowed vlan add 84
     assigned interfaces:
    Expected behavior here would be "switchport trunk allowed vlan 3,84". This only occurs when using "port-profile type port-channel" not when using "port-profile type ethernet"

    <> is template syntax and is generally the type of object a container holds..   So it is defining that the MSGQUEUE type is a deque holding struct_buffer*'s.

  • Question about port forwarding 2 xbox 360s to get rid of NAT on one of them

    I have a xbox 360 with the official xbox 360 wireless antenna that is already set up for port forwarding and my NAT is fine.  My brother has a xbox 360 and he has a NAT problem but he doesn't have a official xbox 360 wireless antenna, he hooked up his laptop to his xbox 360 via ethernet cable and is using his laptops wireless card for the connection and he gets a NAT error when he tests his connection to xbox live.  Is it possible to port forward 2 xbox's?  I'm sure I have to set up some type of static IP for him but the thing is that I'm not sure what IP address to assign to him.  If it is possible, would he have to use a static IP address on his laptop since he's using that for a wireless connection?  If this is at all possible could someone post some step-by-step instructions on how I should set this up?  Below I will give you what I have set up for my xbox 360 to open up my NAT I just want to know what static IP I can use for him.  Can I use just any numbers?
    In my port forwarding tab in my wireless modem I have the following:
    and in my xbox i have the following settings:
    IP address: 192.168.1.20
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.1.1
    Primary DNS: 4.2.2.2
    Secondary DNS: 192.168.1.1
    I have all that entered for myself and my xbox NAT is open.  I just need to set up his xbox if it is at all possible.  Please help!!!
    P.S. My router is a WRT54GS v2.0 with updated firmware, just incase you need that info.
    Message Edited by nourotherleft on 01-08-2009 03:20 PM

    ok that still didn't help me.... he still has a NAT problem.... I don't....I went to port triggering and added the ports that you described but it didn't open his NAT... If the connection is going through his laptop(acting like the xbox 360's wireless antenna) wouldn't either his laptop or his xbox need a static ip? because I had to set up my xbox manually with the following addresses:
    ip: 192.168.1.20
    subnet mask: 255.255.255.0
    default gateway: 192.168.1.1
    primary dns: 4.2.2.2
    secondary dns: 192.168.1.1
    so in essence wouldn't his laptop need to be configured with some kind of static ip or something? because if he puts in what I just stated into his xbox it wont connect at all because I guess the ip's are conflicting....so what do I do now?

  • Quick question re: port mapping

    Does the 802.11n base station have the same limit as the 802.11g base station regarding the maximum number of ports that the user can map?
    In other (perhaps more coherent) words: The "g" base station only allows a user to specify a total of 20 ports in the "port mapping" pane of Advanced settings. Does the "n" station have the same limitation?

    Anyone have any ideas or information? I'm not able to find anything clear by searching the knowledge base, etc.

  • Question about port-auto-adjust

    Good morning Tangosol,
    In the operational config file does the cluster-config/unicast-listener/port-auto-adjust parameter apply soley to cluster-config/unicast-listener/port? Or does it also apply to the port numbers of any well-known-addresses that are defined as well? In other words, if port-auto-adjust is 'true' and you have well-known-addresses defined, will their respective port numbers auto-adjust as well?
    Thanks.
    Pete L.

    Pete,
    The "port-auto-adjust" setting applies exclusively to the value of the "cluster-config/unicast-listener/port" element. When the port-auto-adjust is set to true, the cluster service will attempt to increment the local port number until it can successfully create (bind to) a UDP socket with that port. This significantly simplifies configuring multiple cluster nodes running on the same machine.
    Regards,
    Gene

  • Port-channel question on 9148

    hey I have a question about  port-channel.
    we have a port-channel 10 which contains 4 interfaces as below.
    my question is how the port-channel associated with the servers?  I mean the output "sh flogi database" as below........
    do we need to add port-channel as a zone member ? I think the answer is no since I don;t see the port-channel as a zone member....
    =================================================================
    tormds01# sh interface port-channel  10
    port-channel 10 is up
        Hardware is Fibre Channel
        Port WWN is 24:0a:54:7f:ee:a0:d5:48
        Admin port mode is auto, trunk mode is on
        snmp link state traps are enabled
        Port mode is F
        Port vsan is 510
        Speed is 32 Gbps
        5 minutes input rate 124316072 bits/sec, 15539509 bytes/sec, 9919 frames/sec
        5 minutes output rate 2205921104 bits/sec, 275740138 bytes/sec, 141424 frames/sec
          43540499847 frames input, 70772376296224 bytes
            0 discards, 0 errors
            0 CRC,  0 unknown class
            0 too long, 0 too short
          237450525827 frames output, 442040501099476 bytes
            0 discards, 0 errors
          0 input OLS, 0 LRR, 0 NOS, 0 loop inits
          0 output OLS, 0 LRR, 0 NOS, 0 loop inits
        Member[1] : fc1/1
        Member[2] : fc1/5
        Member[3] : fc1/9
        Member[4] : fc1/13
        Interface last changed at Tue Apr  8 22:16:49 2014
    tormds01# sh flogi database
    INTERFACE        VSAN    FCID           PORT NAME               NODE NAME      
    fc1/3            510   0x860000  50:06:01:64:3d:e0:24:d0 50:06:01:60:bd:e0:24:d0
                               [torvnx01_spa0]
    fc1/7            510   0x860100  50:06:01:6c:3d:e0:24:d0 50:06:01:60:bd:e0:24:d0
                               [torvnx01_spb0]
    fc1/11           510   0x860200  50:06:01:60:3d:e0:24:d0 50:06:01:60:bd:e0:24:d0
                               [torvnx01_spa2]
    fc1/15           510   0x860300  50:06:01:68:3d:e0:24:d0 50:06:01:60:bd:e0:24:d0
                               [torvnx01_spb2]
    port-channel 10  510   0x860400  24:0a:54:7f:ee:92:3e:80 21:fe:54:7f:ee:92:3e:81
    port-channel 10  510   0x860401  20:01:04:25:b5:3a:00:8f 20:01:00:25:b5:30:00:8f
                               [mcvhes0101hba0]
    port-channel 10  510   0x860402  20:01:04:25:b5:3a:00:9f 20:01:00:25:b5:30:00:9f
                               [mcvhes0102hba0]
    port-channel 10  510   0x860404  20:01:04:25:b5:3a:00:6f 20:01:00:25:b5:30:00:6f
                               [mcvhes0103hba0]
    port-channel 10  510   0x860408  20:01:04:25:b5:3a:00:7f 20:01:00:25:b5:30:00:7f
                               [mcvhes0104hba0]
    port-channel 10  510   0x86040f  20:01:04:25:b5:3a:00:4f 20:01:00:25:b5:30:00:4f
                               [mcvhes0105hba0]
    port-channel 10  510   0x860410  20:01:04:25:b5:3a:00:5f 20:01:00:25:b5:30:00:5f
                               [mcvhes0106hba0]
    port-channel 10  510   0x860417  20:01:04:25:b5:3a:00:2f 20:01:00:25:b5:30:00:2f
                               [mcvhes0107hba0]
    port-channel 10  510   0x860418  20:01:04:25:b5:3a:00:0f 20:01:00:25:b5:30:00:0f
                               [mcvhes0109hba0]
    port-channel 10  510   0x86041b  20:01:04:25:b5:3a:00:bf 20:01:00:25:b5:30:01:bf
                               [mcvhes0110hba0]
    port-channel 10  510   0x86041d  20:01:04:25:b5:3a:00:1f 20:01:00:25:b5:30:00:1f
                               [mcvhes0111hba0]
    port-channel 10  510   0x86041e  20:01:04:25:b5:3a:00:3f 20:01:00:25:b5:30:00:3f
                               [mcvhes0108hba0]
    port-channel 10  510   0x86041f  20:01:04:25:b5:3a:00:ff 20:01:00:25:b5:30:01:ff
                               [mcvhes0112hba0]
    port-channel 10  510   0x860423  20:01:04:25:b5:3a:00:df 20:01:00:25:b5:30:01:df
                               [mcvhes0113hba0]
    port-channel 10  510   0x860425  20:01:04:25:b5:3a:00:ef 20:01:00:25:b5:30:01:ef
                               [mcvhes0114hba0]
    port-channel 10  510   0x860426  20:01:04:25:b5:3a:00:cf 20:01:00:25:b5:30:01:cf
                               [mcvhes0115hba0]
    port-channel 10  510   0x860427  20:01:04:25:b5:3a:00:8e 20:01:00:25:b5:30:01:8f
                               [MCDBWS0200hba0]
    port-channel 10  510   0x860429  20:01:04:25:b5:3a:00:9e 20:01:00:25:b5:30:01:9f
                               [MCDBWS0201hba0]
    port-channel 10  510   0x86042a  20:01:04:25:b5:3a:00:7e 20:01:00:25:b5:30:01:7f
                               [mcvhes0118hba0]
    port-channel 10  510   0x86042b  20:01:04:25:b5:3a:00:af 20:01:00:25:b5:30:01:af
                               [mcvhes0116hba0]
    port-channel 10  510   0x86042c  20:01:04:25:b5:3a:00:6e 20:01:00:25:b5:30:01:6f
                               [mcvhes0117hba0]
    port-channel 10  510   0x86042d  20:01:04:25:b5:3a:00:4e 20:01:00:25:b5:30:01:4f
                               [mcvhes0119hba0]
    port-channel 10  510   0x86042e  20:01:04:25:b5:3a:00:5e 20:01:00:25:b5:30:01:5f
                               [mcvhes0120hba0]
    port-channel 10  510   0x860431  20:01:04:25:b5:3a:00:2e 20:01:00:25:b5:30:01:2f
                               [awotorprodsql01hba0]
    port-channel 10  510   0x860432  20:01:04:25:b5:3a:00:3e 20:01:00:25:b5:30:01:3f
                               [awotorprodsql02hba0]
    port-channel 10  510   0x860435  20:01:04:25:b5:3a:00:fe 20:01:00:25:b5:30:00:ef
                               [dbcactv01n3hba0]
    port-channel 10  510   0x860436  20:01:04:25:b5:3a:00:de 20:01:00:25:b5:30:00:bf
                               [dbcactv01n4hba0]
    port-channel 10  510   0x860439  20:01:04:25:b5:3a:00:ce 20:01:00:25:b5:30:00:8e
                               [mcvhes0123hba0]
    port-channel 10  510   0x86043a  20:01:04:25:b5:3a:00:be 20:01:00:25:b5:30:00:af
                               [mcvhes0122hba0]
    port-channel 10  510   0x86043c  20:01:04:25:b5:3a:00:ae 20:01:00:25:b5:30:00:9e
                               [mcvhes0124hba0]
    port-channel 10  510   0x860443  20:01:04:25:b5:3a:00:8d 20:01:00:25:b5:30:00:6e
                               [mcvhes0125hba0]
    port-channel 10  510   0x860445  20:01:04:25:b5:3a:00:ee 20:01:00:25:b5:30:00:cf
                               [mcvhes0121hba0]
    port-channel 10  510   0x860446  20:01:04:25:b5:3a:00:9d 20:01:00:25:b5:30:00:7e
                               [mcvhes0126hba0]
    port-channel 10  510   0x860447  20:01:04:25:b5:3a:00:6d 20:01:00:25:b5:30:00:4e
                               [mcvhes0127hba0]
    port-channel 10  510   0x860449  20:01:04:25:b5:3a:00:7d 20:01:00:25:b5:30:00:5e
                               [mcvhes0128hba0]

    I think what you do is F-Port trunking channeling !
    port-channel as a zone member ? I assume you will do pwwn based zoning; in which case the answer is NO !

  • Port mapping question - I need clarification

    I have posted a question about port mapping previously but - although I thought I understood - it is still not working for me. I was hoping there was a kind soul out there who could humor me and explain port mapping with AEBS 802.11n as if there where talking to a 5 year old.
    Thanks for the help and it's ok to laugh.

    {quote:}This address MUST be outside of the range of IP addresses that your 802.11n AirPort Extreme Base Station's (AEBS) DHCP service is providing.{quote}
    This actually is incorrect.
    The statement that the mapped internal address must be static is correct; otherwise the AEBS will not, if the Mac is assigned a different dynamic (DHCP) IP address by the AEBS some time in the future, be able to forward packets to the Mac. However it is very straightforward to have the Mac computer be assigned an address dynamically by the AEBS and to have the AEBS always assign the same IP address to the same Mac computer. Thereby giving the Mac a static address inside the DHCP range.
    In the AirPort utility go to Internet | DHCP | DHCP Reservations. Click "+" then enter the MAC (what Apple calls Ethernet ID if you are using wired or AirPort ID if wireless) hardware address of the Mac computer, give it an IP address, save it. Then that Mac computer will always receive that (static) IP address from the AEBS.
    Why do this? Well by continuing to use DHCP (while having though a static IP address) you keep all the other benefits of DHCP such as automatically having the gateway address, the DNS server addresses given to the Mac. Otherwise you have to enter all this information manually on the computer if you put it outside the DHCP address range. This is very desirable, especially for most home users, as their DNS server entries are provided by their ASP and picked up by the AEBS. If the ASP changes DNS addresses the manually configured Mac machine will not know.
    So in summary - for port forwarding it is NOT necessary for the Mac machine to be outside the DHCP range, in fact _it is desirable to keep it in the DHCP range_ *as long as* the Mac utilises DHCP reservation on the AEBS.
    I have tested this and it works fine.

  • Port monitoring question

    Hello,
    I'm new to the forum and to Network programming in particular.
    My question concerns port monitoring. I have a server transmitting UDP packets to a specific port. I need to have a thread that monitors that port and sees that there is traffic going out. Yet, it does not have any connection to the server (different processes), but it knows the IP and port number (actually the IP is the same).
    How do I make it happen? Do I need to use a DatagramSocket and read inputs? Could someone advise with a simple code sample?
    Thanks

    Hi,
    Why you dont simply create a DatagramSocket object. And using the receive message you can monitor datagrampackets, and if there is message or not available, simply use the getLength() method from this object.
    You can do it in two ways.
    One would be creating two threads, one to do the job, and the other one to monitor if there is or not message available. As you should know, the receives method, will block if there is no message available. As u dont want your program to freeze, put this job, in one thread.
    The other one, would also be using a timertask, which will monitor the waiting process. If then for x time, it doenst receive, you finish your program.
    There are really many many possibilities, u just need the DatagramSocket object, the DataGrampacket and a thread!
    If i misunderstood something, you can give me new directions

  • Several instances using same port question

    Good Morning,
    I am going to have to create several instances on one box using solaris 10 zone technology. Each zone haveing it's own instance. I need to confirm whether or not that all those instances can use one listerner or does each instance need it's own separate port such as 1521, 1522 etc. for it's listener.
    Your opinion and recommendation on this matter will be much appreciated.
    regards,
    al

    <br>> Good Morning,
    <br>>
    <br>> I am going to have to create several instances on one
    <br>> box using solaris 10 zone technology. Each zone
    <br>> haveing it's own instance. I need to confirm
    <br>> whether or not that all those instances can use one
    <br>> listerner or does each instance need it's own
    <br>> separate port such as 1521, 1522 etc. for it's
    <br>> listener.
    <br>>
    <br>> Your opinion and recommendation on this matter will
    <br>> be much appreciated.
    <br>>
    <br>> regards,
    <br>>
    <br>> al
    <br>
    <br>Hi,
    <br>
    <br>As you are going to be using Solaris Zones would you really want to have one listener for all of the instances?
    <br>
    <br>Surely the point of using Zones is separation of the environments so why would you want to try and break that by not having separate listeners? If you aren't interested in isolating the environments then Zones seems like an added headache you can do without.
    <br>
    <br>On the question of ports... each Zone is going to have its own IP address so it really doesn't matter what port you choose. They could all have the same port for their individual listeners or they could all have different ports. Makes no odds really.
    <br>
    <br>Hope that helps.

  • Port knocking question

    Hi, Arch Community,
    I have kind of a dumb question regarding port knocking.  I'm doing some preliminary testing based on the documentation here:
    https://wiki.archlinux.org/index.php/Port_Knocking
    I've created a couple of rules and a logging chain:
    #PORTKNOCK chain
    :PORTKNOCK - [0:0]
    -A PORTKNOCK -m limit --limit 5/m --limit-burst 10 -j LOG --log-prefix "IPTABLES Portknock: "
    -A PORTKNOCK -j DROP
    # This will add the ip to the list SSH0 if the port knocked is 8881
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 8881 -m recent --name SSH0 --set -j PORTKNOCK
    I know this is getting hit because it is logging:
    Feb  7 15:46:44 hypervisor kernel: [2316624.562712] IPTABLES Portknock: IN=eth0 OUT= MAC=78:2b:cb:a7:97:dd:08:00:27:72:61:bb:08:00 SRC=10.135.217.176 DST=10.135.217.178 LEN=64 TOS=0x10 PREC=0x00 TTL=64 ID=31917 DF PROTO=TCP SPT=38253 DPT=8881 WINDOW=16384 RES=0x00 SYN URGP=0
    My question is that based on my reading, I should be able to inspect the contents of the names set SSH0 by taking a look at /proc/net/ipt_recent/SSH0 or something of this sort (http://www.ducea.com/2006/06/28/using-i … e-attacks/).
    I don't see this path of my proc filesystem.  Could anybody tell me where to look to discern this set information?
    Thank-you so much for taking the time to answer my question.
    Dan Sullivan

    Thank-you, kind person.  This is exactly what I was looking for.
    Dan Sullivan

Maybe you are looking for

  • Folders in Files Panel won't stay collapsed

    There are 2 folders in my Files Panel which won't stay collapsed.  When I open Dreamweaver, they are expanded.  If I click the arrow next to them a few times they will eventually collapse, but then as soon as I open any other file or folder they re-e

  • Error Code -229771

    Hello, I have been dealing with this problem with NI Technical Support, but I am not getting anywhere. I have searched and tried all the recommendations in the search results.  Here is my original question to NI...  I am experiencing the error discus

  • How to deduct TDS while making an Outgoing Payment

    Company wants to deduct TDS while making an outgoing payments to Contractors / Jobworkers / Transporters.... can anyobody guide me Edited by: Marc Riar on Feb 19, 2008 10:23 AM

  • IN operator with single quotes

    Hi All, I am having problem dealing with Single Quotes with IN operator. Below procedure will explain my problem: create or replace procedure sp_countemp p_empnames       in   varchar2 is v_cnt            integer:=0; BEGIN select count(*) into v_cnt

  • Does anyone know how to make one email account alarm you when you have mail but not all of your accounts?

    I have a specific email account that I would like to alert me when an email has come in but I don't want all my accounts to alram me.  Does anyone know how to do this?  I can only seem to find how to alert EVERY account.