• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Datagram lost in network

 
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......
 
Bartender
Posts: 9615
16
Mac OS X Linux 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
Posts: 9615
16
Mac OS X Linux 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.
 
Destroy anything that stands in your way. Except this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic