Java chat client behind the proxy or fire wall

i am developing the chat application useing java.net.*.but i am not able to get connectivity behind the firewall or proxy on the java client.pls help me out

to guarantee easy to use, no problem chat applet then you will need to have the chat server running on port 80 and the client use http request/response system
first problem is that the applet will have to have been delivered from port 80 on the same ip# so you will either have to use Servlets or write your own web server with chat facilities
you will need to maitain persistent/ pseudo persistent http connections for the server to deliver messages to clients, you can assume that a connection will remain open for ~ 5 minutes after a request from the client
use HTTP/1.1 for reliable Connection: keep-alive and request/response pipelining
with all that in place your client method is...
register and send GET /chat <wait for upto 5 mins>
if there is client activity send POST/chat <wait for upto 5 mins>
if the above waits timeout send GET/chat <wait for upto 5mins>
server method...
accept GET/POST requests from client
if there is chat to deliver, reply to most recent request from client
if you recive another request before the previous one's reply is used, send a No Content reply to the previous request

Similar Messages

  • Problems with Arrowpoint cookies for clients behind a Proxy

    I have in a WebSite clients being load balanced using Arrowpoint cookies to a virtual Server. The CSS load balance between three Apache real servers.
    I have some clients that are behind some kind of Proxy Cache and I have seen with a sniffer that the proxies causing the problem Re-use proxy to our server connections for different requests for multiple clients.
    Then, as I understand the CSS make the forwarding decission based on the cookie of the first request for the first client behind the proxy after establishing the HTTP connection, but when there is a request from other client using this same connection (that must be forwarded to other real server) the request is forwarded to the original web server and fails because we need sticky connections.
    I thought that this wasn't correct but I have read some documents that say that this is called a Proxy role as a "connection cache". Then my question is if there is any workaround for this problem.
    Thanks

    I believe your problem is that the proxy open a few persistent connections with the CSS and loadbalance your client's request over them.
    Once the CSS has associated a connection with a service, it does not look into the request anymore.
    The solution is to disable persistence on the CSS with the command 'no persistent' and 'persistence reset'.
    Find more info at :
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a0080093e06.shtml#crp
    Gilles.

  • Running application behind the proxy

    Hi,
    I have developed one test SAPUI5 application and using Northwind OData service.
    Application is working fine but when I try to run in my office network which is behind the proxy, application is giving "407,Proxy Authentication Required". Following is the web console log.
    Yes this is the obvious behavior as I have to give my user name and password for accessing internet from my office network.
    My question is how should I specify proxy user name and password in SAPUI5 application while accessing OData so that I can run it behind the proxy also.
    /Products [HTTP/1.1 407 Proxy Authentication Required 88ms]
    "2014-04-30 14:47:11 The following problem occurred: HTTP request failed407,Proxy Authentication Required,<HTML><HEAD>
    <TITLE>Access Denied</TITLE>
    </HEAD>
    <BODY>
    <FONT face="Helvetica">
    <big><strong></strong></big><BR>
    </FONT>
    <blockquote>
    <TABLE border=0 cellPadding=1 width="80%">
    <TR><TD>
    <FONT face="Helvetica">
    <big>Access Denied (authentication_failed)</big>
    <BR>
    <BR>
    </FONT>
    </TD></TR>
    <TR><TD>
    <FONT face="Helvetica">
    Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.
    </FONT>
    </TD></TR>
    <TR><TD>
    <FONT face="Helvetica">
    This is typically caused by an incorrect username and/or password, but could also be caused by network problems.
    </FONT>
    </TD></TR>
    <TR><TD>
    <FONT face="Helvetica" SIZE=2>
    <BR>
    For assistance, contact your network support team.
    </FONT>
    </TD></TR>
    </TABLE>
    </blockquote>
    </FONT>
    </BODY></HTML>
    Regards,
    Vikram

    Have you configured the proxy settings in Eclipse? I believe the SimpleProxyServlet uses the Eclipse Authenticator, and you can configure the proxy username and password in Eclipse.
    SAPUI5 SDK - Demo Kit
    Internet Servers
    TheSimpleProxyServletcan be configured for proxy requests to internet servers in the same way as for intranet servers. Additional proxy settings may be necessary.
    As theSimpleProxyServletautomatically uses the proxy settings from your Eclipse this can be configured in Eclipse under Window Preferences , and select General Network Connections . Here you can specify the proxy entries and the proxy bypass.
    For example, set Active Provider to Manual, Schema=HTTP, Host=proxy, Port=8080 under proxy entries and localhost, *.sap.corp as Host under proxy bypass.
    Regards,
    Jason

  • Is there a chat client for the iPod Touch or iPhone yet?

    Is there a chat client for the iPod Touch or iPhone yet? I already know about Meebo and JiveTalk which allow me to chat on all the major clients, Yahoo, MSN, and AOL. But how about a standalone app?
    Thanks,
    Jeff

    And so when are we talking about here? That one app and then I think this thing will be complete! Well I suppose we could use another food processor, garbage disposal, answering machine, music player, Swiss Army knife. But I'll be happy if I can just chat with friends!
    Thanks!
    Jeff

  • Lync Client Behind A Proxy

    Can anyone confirm if the Lync client can be configured to route traffic via a proxy, or to use the proxy settings defined in IE?
    I have the following scenario...
    The environment is heavily locked down, and PC's only have access to the Internet via a defined IE proxy.  Internal IM, presence and communication all work fine.  We have configured federation with some remote organizations.  IM and presence
    works fine to these orgs, but when any A/V or application sharing is attempted, the media fails.  I can see from traces this is when the client tries (and fails) to access the A/V edge of the remote federated parties edge server.
    I've looked at the Lync settings, reg settings, group policy ADM and documentation, and cant find anything to a) confirm if this behavior is correct or b) any way to work around it.
    There must be other Lync implementations in hardened environments like this.  Opening up outbound ports is out of the question, so what other options do i have?
    Dave

    Jay, you missed the key word in my last post "internally".  Functionally, everything about the edge server is working fine.  Clients can login internally and externally.  Media flows from internal to external clients is fine.  All SIP/AV/WEBCON
    DNS entries are fine in public DNS along with supporting SRV records.  These interfaces are Nat'd and the AV address is correctly assigned.
    My problem only occurs when an AV session is attempted with a federated partner...
    When any AV or sharing is attempted, from the internal network, to the federated partner, i can see the Lync client attempting to make connections out to the remote federated partners AV edge (something which it will never be able to do as it's behind a
    proxy with no direct Internet access).  This is what I'm trying to address.
    Should the SIP/AV/WEBCON address exist INTERNALLY
    on the corporate DNS servers for internal clients to resolve?  Is this what i have missed?
    Is there anyway to instruct the Lync client to route traffic bound for the Internet via a proxy?
    Surely there must be someone else with this scenario in a locked down environment?

  • Web service client behind a proxy server connecting to web service over SSL

    Hi Friends,
    A web service is exposed by an external system over SSL. We are behind a proxy server and are trying to get connected to web service over SSL. <p>
    We are getting the following error on the test browser of workshop<p><p>
    External Service Failure: FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable to negotiate an acceptable set of security parameters.<p><p>
    the whole trace is <p>
    <p>JDIProxy attached
    <Sep 24, 2005 9:27:25 AM EDT> <Warning> <WLW> <000000> <Id=creditCheckCtrl:salesExpertServiceControl; Method=creditcheckcontr
    ol.SalesExpertServiceControl.doCreditVerification(); Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:javax.net.ssl.SSLHandshakeException
    String:FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable to negotiate an acceptable set of security parameters
    Detail:
    END SERVICE FAULT>
    <Sep 24, 2005 9:27:26 AM EDT> <Warning> <WLW> <000000> <Id=creditCheckCtrl; Method=creditcheckcontrol.CreditCheck.testCreditC
    heck(); Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:javax.net.ssl.SSLHandshakeException
    String:FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable to negotiate an acceptable set of security parameters
    Detail:
    END SERVICE FAULT [ServiceException]>
    <Sep 24, 2005 9:27:26 AM EDT> <Warning> <WLW> <000000> <Id=top-level; Method=processes.CreditCheck_wf.$__clientRequest(); Fai
    lure=com.bea.wli.bpm.runtime.UnhandledProcessException: Unhandled process exception [ServiceException]>
    <Sep 24, 2005 9:27:26 AM EDT> <Error> <WLW> <000000> <Failure=com.bea.wli.bpm.runtime.UnhandledProcessException: Unhandled pr
    ocess exception [ServiceException]><p>
    I am not able to make out what could be possibly wrong. Please let me know if you guys have any ideas about how to resolve it.
    Thanks
    Sridhar

    did you resolve this problem. I am looking at the same issue. If you did I would really appreciate your response.
    Thanks.

  • How to get the remote user IP address if behind the proxy or firewall

    Hi
    How do i get the remote user Ip address who is invoking the servlet behind from a firewall.
    When i use getRemoteHostAddr it gives the proxy ip address not the actuall user host address... Kindly let me know how to get the actual user ip address
    satish

    There is no reliable way to determine the original IP, and such information is not useful to you if the original IP is behind a firewall. What do you propose to use it for? There is probably an alternative way to do things that does not require the remote IP.

  • Simultaneous uploads behind the proxy

    In AIR application, I am uploading two files simultaneously using FileReference.upload(). It works perfectly fine on all operating systems in most of the cases but in some cases doesn't work e.g when auto detect proxy option is checked on Mac OS. Although for FileReference API, it is documented that you must upload files one by one but it works really fine in most of the cases.
    In debug proxy, it shows same request on both connections and one connection is in wait state. Did anyone encountered this situation? and know whats the root cause of this error? As a workaround, I tried determining upload mode (simultaneous/sequential) using two dummy files, but it is really random. sometimes two files are uploaded successfully and in some cases IO error is thrown after a long time.

    Have you configured the proxy settings in Eclipse? I believe the SimpleProxyServlet uses the Eclipse Authenticator, and you can configure the proxy username and password in Eclipse.
    SAPUI5 SDK - Demo Kit
    Internet Servers
    TheSimpleProxyServletcan be configured for proxy requests to internet servers in the same way as for intranet servers. Additional proxy settings may be necessary.
    As theSimpleProxyServletautomatically uses the proxy settings from your Eclipse this can be configured in Eclipse under Window Preferences , and select General Network Connections . Here you can specify the proxy entries and the proxy bypass.
    For example, set Active Provider to Manual, Schema=HTTP, Host=proxy, Port=8080 under proxy entries and localhost, *.sap.corp as Host under proxy bypass.
    Regards,
    Jason

  • Java chat closing when the page looses focus

    I just got a mac about two weeks ago, switching from being a lifelong NT/2000/XP user. So far I love it, but there is one thing really bugging me.
    I am a regular in an online chat for a radio station I listen too. They don't use irc, just some java based chat software. Whenever I switch to another safari window or tab, the chat room's connection seems to close, and I have to log back in.
    Anyone know what is causing this, or how to fix it?

    Still need help with this issue!

  • Java Rmi Client behind firewall

    What port should be opened to let rmi traffic passing through firewall to weblogic app server?

    Dahan <[email protected]> writes:
    What port should be opened to let rmi traffic passing through firewall to weblogic app server?The port the server is listening on?
    andy

  • Java JRE 1.7 & 1.8 is not detecting the proxy (TMG) server

    Hi ,
    We are using the windows 7 64 bit OS and JRE 1.7 and 1.8. The Java and eclipse running behind the proxy server.
    We are using Microsoft Forefront TMG client.
    We are trying to connect the maven / eclipse market place but its not detecting the TMG server.
    Up to java 1.6 there no error while accessing maven / eclipse market place. after upgrade the java we are facing the issue.
    Issue: I am unable to connect to Maven Repository(https://repo.maven.apache.org/maven2/....) when I use Java 1.7
    where as I am able to connect to maven repository when I use Java 1.6
    I used the windows command prompt.
    Got below message
    "[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artif
    act descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
    org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven
    -clean-plugin:jar:2.5
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:122)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:148)
    at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:81)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:138)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:121)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:85)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:260)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:103)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.jav

    Refer similar post.
    https://community.oracle.com/thread/3634249

  • Connecting to a database through the Proxy using JDBC

    Hi,
    I am working on core java.
    I want to established connection to remote database(I am working on local network behind the proxy)
    how can i do this using core java
    thanks in advance
    regards
    Man479

    The only issue I see here is configuring the proxy to allow the client program to connect to a certain port on the server. And that issue would normally be dealt with by asking the person who manages the proxy to set it up that way.

  • Setting up BCM 7.0.6.100 Internet Chat Client

    Hi, everyone!
    I've been struggling with a weird error message when setting up the proof-of-concept chat client for BCM 7.0.6.100
    What I did is set up a fresh system from scratch and configure it just enough to conduct tests. After that I installed the chat client onto the same machine.
    Now the problem is that whenever I rty to initiate a new chat I get the following error message:
    13Chat Server not availablefalse
    System.Web.Services.Protocols.SoapException: com.sap.bcb.common.SoapException
       at ChatPortal.IciContainerService.subscribe(String appUrl, String appId, String channelType, String containerId) in d:\bcm_70_sp6_p1_source\bcm_7\source\source\ExtAppIntegration\WebServices\ChatPortal\IciContainerService.asmx.cs:line 99
    This is a copy-paste from the exact message. Chat server actually is available and I'm pretty much out of ideas what to try to fix.
    Has anyone any ideas on what to try next to get the chat working or better yet does anybody know the exact solution?
    Thanks in advance,
    Jaanus

    Jaanus,
    can you reach this page?
    If "Yes", and after clicking "Submit" you get an error message, check contact filed, e-mail ([email protected] on the screenshot) address must be the same as you assigned to a chat queue.
    BR,
    Anton.

  • Configure FMS behind a proxy

    Hello,
    I've a problem to configure FMS Streaming 4.5 on an Ubuntu 10.04 Server.
    I've got a website and a FMS on the same server who is behind a proxy (not on the same server)
    Server IP : 192.168.0.2
    Proxy IP : 192.168.0.254
    FMS is configure to listen to port 1935 in fms.ini
    # This section contains configurable parameters in Adaptor.xml #
    # IP address and port(s) Flash Media Server should listen on
    # For example:
    #    ADAPTOR.HOSTPORT = :1935,80
    ADAPTOR.HOSTPORT = :1935
    Apache  listens on port 80
    Apache wasn't installed with FMS, it's pre-installed
    This is my Virtual conf
    NameVirtualHost 192.168.0.2:80
    <VirtualHost 192.168.0.2:80>
    ServerName mydomain.com
    DocumentRoot /var/www/html/
    </VirtualHost>
    Ports 80 1111 and 1935 are opened on my server
    # RTMP Streaming
    iptables -t filter -A INPUT -p tcp --dport 1935 -j ACCEPT
    iptables -t filter -A INPUT -p udp --dport 1935 -j ACCEPT
    iptables -t filter -A INPUT -p tcp --dport 1111 -j ACCEPT
    iptables -t filter -A OUTPUT -p tcp --dport 1935 -j ACCEPT
    iptables -t filter -A OUTPUT -p udp --dport 1935 -j ACCEPT
    iptables -t filter -A OUTPUT -p tcp --dport 1111 -j ACCEPT
    On the proxy server (use Apache), ports 80, 11, 1935 are opened in the firewall (output, input and forward) and the proxy makes a NAT translation to my website.
    But I can't see the videos on my website
    If i test on a machine behind the proxy, the streaming is OK, i see my videos.
    I don't know how to solve this problem. I've got only one IP on my server.
    What is the best solution,
    Thanks for your help

    Here is the flash tutorial:http://kb2.adobe.com/cps/408/kb408205.html
    Without a proxy, it connect locally using the 1935 port.
    I'm also able to connect from the external network to my local network using the same port.  The firewall is configured to accept incoming rtmp connection
    But as soon i use a proxy, the connection fail.

  • BC4J and OAS with Java Application Client

    Could you show me an example about using the BC4J and OAS with Java Application client.
    The JDeveloper Help is not enough to solve this kind of problem.
    Configuration:
    Jdeveloper 3.1
    OAS 4.0.8.1
    Database 7.3.4
    null

    if you can logon with client tools then that should be an indication that the service account running the CMS IS working! Good news.
    So the problem is likely with the java portion (krb5/bsclogin or java options)
    If the files are in c:\winnt\ (if not copy them there) and perform c:\program files\business objects\javasdk\bin\kinit username
    then enter and password/enter again
    Probably get the same message. To note in your krb5.ini all domain info must be in CAPS (the .com appears to be in lower case)
    kinit works with just the krb5.ini, java SDK and AD (removing BO config and the service account from the picture). Once that works if your java options are specified properly you should be able to login to CMC/infoview.
    also 1 last point. Add udp_preference_limit = 1 to the krb5 lib defaults section
    libdefaults
    default_realm = BD.com
    dns_lookup_kdc = true
    dns_lookup_realm = true
    udp_preference_limit = 1
    Regards,
    Tim

Maybe you are looking for

  • How Can I print my report through character mode using DOS, very very urgent

    Hi all I would like to print my reports instead of from windows based, I want to print through DOS mode. While giving dos mode printouts report builder is hanging and comming out. Any help will be appreciated. Thanks Reddy

  • Can't get the timer to work

    hello, I'm new to AS 3. However, I'm finding it to be baffling overall. Every time I try to go deeper with it I find I can't get what appear to be simple tasks to function. This time I'm trying to work with the timer class. I have two layers: display

  • Moving a web gallery

    How can i move a web gallery folder from my old mac to my new one?

  • IMac G5 as handsfree?

    I would like to know if it is possible to use my imac g5 as a bluetooth handsfree for my ericsson t610? I have it paired so when people dial i get a display up (i;m using romeo freeware to also control DVDs etc...) What i really want to do is to answ

  • WBS Element in HR Master Data

    Dear Friends, I have a problem relating to WBS assignment as follows: When a new project is created in PS, some of the existing employees will be assigned to New WBS in PS. I am able to see the list of the employees assigned to the particular WBS. Bu