This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes On which port i should recieve a UDP packet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "On which port i should recieve a UDP packet" Watch "On which port i should recieve a UDP packet" New topic
Author

On which port i should recieve a UDP packet

dheeraj chhabra
Greenhorn

Joined: Apr 09, 2004
Posts: 23
Hi.all..
i m making a project..inwhich i have to receive a UPD packet in a byte array and decode that..
So what should i listen to receive packet...
could u please help me out..
dheeraj chhabra
kashif hameed
Greenhorn

Joined: Jun 15, 2003
Posts: 15
The recieving is not concerned with port. You can just recieve on that port that is mentioned in ur Server program . I mean server sending port and client recieving port must be same.
Kashif Hameed
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: On which port i should recieve a UDP packet
 
Similar Threads
Can I sit on ois.readObject() and wait for more packets? More questions
Threading and collections problem.Pl help
Threads and Sockets
DatagramPacket::getLength() does not refresh
UDP broadcast on multiple interfaces