Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Datagram lost in network

 
t satish
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i am doing client to client communication , in which one client is having applet witch is continuously listing on one datagram socket and another application is eclipse swt application which is sending messages to multiple applet based client through datagram socket,

the problem is that i am able to get message is applet when i runs both application on same system, but when i try to run the applet in one system and swt client in another i am able to send the message through swt system , but applet still keeps listening on particular port not gettting any message.

can someone help to solve the problem......
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets can't connect to any host other than the one they were downloaded from. Applet Security Restrictions
 
t satish
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But it is an datagram socket.....can't datagram socket listen on particular port on client system in applet and isn't it possible to send the message to that port from different client. is there any other ways to accomplish the task.

if we make a signed applet i guess we can accoplish the task.

???
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by t satish:
But it is an datagram socket

It is still a network connection. Datagram sockets simply use UDP rather than the TCP that java.net.Socket and ServerSocket use.

Originally posted by t satish:

if we make a signed applet i guess we can accoplish the task.

Yes.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic