File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Datagram lost in network Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Datagram lost in network" Watch "Datagram lost in network" New topic
Author

Datagram lost in network

t satish
Greenhorn

Joined: Jun 30, 2005
Posts: 2
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

Joined: Oct 29, 2001
Posts: 8924
    
    9

Applets can't connect to any host other than the one they were downloaded from. Applet Security Restrictions


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
t satish
Greenhorn

Joined: Jun 30, 2005
Posts: 2
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

Joined: Oct 29, 2001
Posts: 8924
    
    9

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Datagram lost in network