Datagram Client cannot connect to the Datagram server

I have problem using datagram object or understanding it. I looked at the example given. I tried once and it worked for the first time. However, it doesn't work the second time and so on ...

I am wandering why this happend? I din't change anything in the code at all. Using RMI, We need to kill the registry and how about in the datagram? What should I do after turning off the problem or actually logout from the server?

Please help and give me some suggestion that I can follow ...

Thanks ton

[521 byte] By [BB81a] at [2007-11-27 0:39:34]
# 1
I don't understand any of this and I doubt that anybody else could either. You had some problem in your first paragraph but you don't say what it is, which isn't going to produce any help. Your second paragraph is about RMI and datagrams, a facility which doesn't exist.
ejpa at 2007-7-11 22:51:52 > top of Java-index,Core,Core APIs...
# 2

Sorry for that ...

Actually, what I mean is my server and client doesn't work. Before this, it worked once. Later, I tried is again and again. It just doesn't work. I didn't change anything in the code.

Then, I was thinking about RMI. I understand that when running a server with RMI. I need to do rmiregistry with a port number, and to completly stop the server and free from using the port number. I need to do fg.

So, I was thinking should I do something similar to the server which uses DatagramSocket and DatagramPacket.

Thanks

BB81a at 2007-7-11 22:51:52 > top of Java-index,Core,Core APIs...
# 3
And what exception were you getting?!If it's something about binding, kill the java process that you previously started...
jadespirita at 2007-7-11 22:51:52 > top of Java-index,Core,Core APIs...
# 4

> Actually, what I mean is my server and client doesn't

> work. Before this, it worked once. Later, I tried is

> again and again. It just doesn't work.

This still tells us nothing. 'Doesn't work' and 'just doesn't work' are just not adequate as descriptions of a software problem. Would you accept that on a fault report? You have to provide some symptoms.

ejpa at 2007-7-11 22:51:52 > top of Java-index,Core,Core APIs...