permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Don't get me started about those stupid light bulbs.
 
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
UDP broadcast on multiple interfaces
Threads and Sockets
Threading and collections problem.Pl help
DatagramPacket::getLength() does not refresh