How to ping a client

I'm working on a video conferencing application and I'm having some problems regarding disconnection issues because the "ByeEvent" doesn't seem to work properly. I decided to just ping the clients in order to determine that someone has been disconnected.
Can you share with me a ping program in java?
Please help me out. Thank you.

There is no way to do real ping in Java, only via native code or using Runtime.exec() to run a native ping application.

Similar Messages

  • How to ping a client using java

    i got a problem, can any body help me regarding this matter. Problem is that i want to maintain a list of all the systems that are connected to server and this list is to be maintained using java, as i m building an appication in java where i need this list. Overview of the application is that i m making a PC reservation system. Database of the system will be maintained on the server and all PCs will be linked to it using RMI. For making reservation of different PCs, there must be a list of all working PCs so that selection can be made to reserve a PC. Problem is that how to maintain that list, plus continuous update this list so that if a PC stops working/breaks down, it can be removed from the list. Simple solution to this is to ping each PC after fixed time interval, but how to ping using java ??? i m usgin Microsoft Visual J++ 6.0 for developing my application, and this application will be runnig on Microsoft Windows 2000 operating system, but currently, i m in Windows 98 enviornment.

    The 1.4 API actually provides a Runtime.exec(String) but if you want to provide a String array, you can do that as well. None of the exec are static, you need to obtained a reference to the Runtime through the static method getRuntime(). So the exact call looks this way:
    Runtime  rt = Runtime.getRuntime();   // you probably want to obtain this REferance only once
    Process p = rt.exec(new String[] {"ping", target}); // yes, target is the IP or DNS name of the machine you want to ping

  • How to load a client file in a clob using sqlcl

    How to load a client file in a clob using sqlcl

    You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.

  • How to create cross-client variant?

    Hi Experters:
    Can someone tell me how create cross-client variant in ECC6.0?
    in 4.6, we can define the client or define cross-client transaction variant,
    how to create cross-client variant in ECC6.0?
    Regareds,

    Hi,
    In se93 there is a check box cross-client .
    The Cross-client switch identifies which transaction variants are cross-client and which are client-specific. If the switch is set, the transaction variant is cross-client. If the switch is not set, the transaction variant is client-specific.
    A client-specific transaction variant can only exist in the client where it was created. The field contents of the transaction variant only have to be available in the particular client. A cross-client transaction variant is available in the system regardless of which client is currently active. The field contents of the transaction variant have to be available in all clients.
    http://****************/Tutorials/ABAP/TransactionVariant/Create.htm

  • How to comapare two clients in sap scripts

    hi,
               how to comapare two clients in sap scripts

    Hi Anil,
    Go to Tcode 'SE71' then choose menu Utilities->Compare Clients, then mention the Form name which u wish to compare, and give target client name and source client name, then execute.
    Regards
    Haritha

  • How to install oracle client on pentium 4

    please can someone tell me how to install oracle client 8i on pentium 4 system. the installation is not going automaticlly , and if i explore the cd and press on the setup file the installing didnt start.

    8i definitely has problems with Pentium IV processors. The fix is to copy the entire CD to the hard drive and then rename each copy of symcjit.dll to symcjit.old.

  • How to configure dhcp client identifier

    Hi Everybody,
    The DHCP client ID is an id that is unique for DHCP clients at least in the same subnet. Usually the client uses MAC-address as Client-Identifier in the DHCPDISCOVER message. The Client-Identifier may be different other than MAC-Address, For example a FQDN name, as per the RFC 2132 Ref, (code 61).+_
    Usaually, we use the following to bind the ip address based on MAC-address
    pntadm -r SUNWfiles -p /var/dhcp -A 10.42.32.86 -i '0:3:ba:a5:a9:93' -a 10.42.32.80
    At server side, I am using the following for specifying the FQDN name.
    pntadm -r SUNWfiles -p /var/dhcp -A 10.42.32.86 -i 'one.atr.com' -a 10.42.32.80
    and at client side, I am inserting the following entry in the /etc/default/dhcpagent file
    CLIENT_ID='one.atr.com'
    But this is not working. What I am doing wrong.
    +1. At the server side, then how to assign the ip addresses to the clients , if the Client-Identifier is FQDN name in the DHCPDISCOVER message other than MAC-Address.+
    +2. How to configure the client-identifier as FQDN name at client side.+
    Please help me,
    Thanks Inadvance,
    Mummaneni.

    Sandman,
    Here is an example of a router acting as a DHCP server. Please remember that you have to exclude IP addresses that you don't want to lease out.
    ip dhcp pool example
    import all
    network 192.168.1.0 255.255.255.0
    dns-server 1.2.3.4
    default-router 192.168.1.1
    ip dhcp excluded-address 192.168.1.1 192.168.1.149
    ip dhcp excluded-address 192.168.1.200 192.168.1.254
    HTH,
    Mark

  • How to Changing Productive Client in an ABAP+Java System?

    How to Changing Productive Client in an ABAP+Java System?

    1. Log on to the ABAP system.
    2. Call transaction SPRO.
    3. Go to SAP Solution Manager Implementation Guide -->
    SAP Solution Manager --> Basic Settings --> SAP Solution Manager
    System --> General Settings --> Client Copy
    4. Perform the following steps:
    a) Maintain Profile Parameters
    b) Create Client
    c) Copy Client 000
    d) Convert UME

  • How to setup the client application for the RMI?

    Question:
    I write a short program of RMI It contain server and client
    if server and client are run on localhost they are running ok
    but run client application on remote machine it occure issuses.
    How to setup the client on remote machine?

    hello Dhanraj K, for gmail accounts there shouldn't be much manual configuration required. please try to set it up like described in [[Add an email account to the Mail app in Firefox OS]]

  • How to create new client in XI

    Hi all,
      Can any one guide me how to create new client in XI.

    Hi
    To set up a new client, follow these steps
    1) Create a client going in to the path
    <b>Tools->Administration ->Administration -> Client administration -> Client maintenance</b>
    or can also use TCODE <b>scc4</b>
    2)Login into the client with
    User: <b>DDIC</b> or <b>SAP*</b>
    Password
    For default password go thru this link
    http://help.sap.com/saphelp_nw04/helpdata/en/52/67179f439b11d1896f0000e8322d00/content.htm
    Regards
    Arpit Seth

  • How can I get Client IP Address in oracle?senthil

    How can I get Client IP Address in oracle?senthil

    Hi,
    Following query can help you to get the Client IP Address.
    select sys_context('userenv','ip_address') from dual;
    Thanks,

  • How can I get client IP address in portlet (servlet) ?

    How can I get client IP address in portlet (servlet) ?
    request.getRemoteAddr() return server IP.
    May be I must use Portal API, which extend Servlet classes, but I can't find this.
    Can any help me?

    Hi,
    Following query can help you to get the Client IP Address.
    select sys_context('userenv','ip_address') from dual;
    Thanks,

  • Hello , FMS is how to prevent the client into a large number of bytes?

    Hello , FMS how to prevent the client to pass a large number of bytes , such as one person put a 1G file in the argument , I also silly to receive ?Although there Client.setBandwidthLimit ( ) limit his maximum traffic per second , but is there a way , one more than the maximum amount of bytes to disconnect his.I assume that methods to determine the length is also obtained all of his transfer is finished , in order to determine out of it .

    How to limit the size of the parameters of the method.I wrote a method in the main.asc then the client NetConnection.call assignment, but if the client is malicious to upload very large data, how to limit it, I view the document did not find the clues, I hope that those parameters up to100KB.

  • How many concurrent VPN client sessions available for cisco 2621XM?

    I have cisco router 2621XM with IOS c2600-advipservicesk9-mz.124-11.T4.
    I want to know, how many concurrent VPN client sessions can be available in this image.

      here is the configuration on PIX,
    group-policy DfltGrpPolicy attributes
    wins-server value 10.0.0.67 10.0.0.68
    dns-server value 10.0.0.67 10.0.0.68
    vpn-simultaneous-logins 20
    vpn-idle-timeout 5
    split-tunnel-policy tunnelspecified
    split-tunnel-network-list value vpn-acl
    default-domain value mydomain.com
    address-pools value vpnpool group-policy DfltGrpPolicy attributes
    wins-server value 10.0.0.67 10.0.0.68
    dns-server value 10.0.0.67 10.0.0.68
    vpn-simultaneous-logins 20
    vpn-idle-timeout 5
    split-tunnel-policy tunnelspecified
    split-tunnel-network-list value vpn-acl
    default-domain value want-want.com
    address-pools value vpnpool

  • How to create a client

    hi,
    please let me know the details on how to create a client in solutiona manager service desk

    The reporting user needs a business partner in Solution Manager (BP_GEN / BP)
    Further more you need to maintain business partner identification tab for that user in tx: BP
    External BP number:
    CRM001   "<SID> <Installation Number> <Client> <User>" 
    For instance:
    CRM001 "ABC 1234567890 100 VSHAN"
    /cheers

Maybe you are looking for