• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Socket from applet

 
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I have a java applet that connects to a server and sends/recieves data.
It all works fine for everyone that doesn't use a Proxy server.

I connect to the server by using

Socket s = new Socket( HOST , 5050 );
s.getInputStream() and so on.

The company that is using the applet have difficulties in using the applet because they have a proxy server. How can I connect via the Proxy?

Hope you can help me
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does this help?
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks but it doesn't help.

Can somebody please explain.

I have opened a port in my firewall to communicate from server to client and vise versa. If the client is behind a firewall at my client do they need to open the same port in their firewall... And if so... can somebody please explain.

The client is a java applet.

// Mathias
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That depends on the firewall. Many firewalls, like the Windows XP firewall, just block incoming connections. If this were the case at your client, he could make a connection to your server no problem. Other firewalls, like ZoneAlarm, inform the user if a program attempts to make an outgoing connection. If this is the case at your client's site, he will need to configure his firewall to allow a connection.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So you think the firewall is the problem? From your first post I gathered that a proxy might be the issue. Or is this a proxying firewall?
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic