Click the "Subscribe" button below the video to support Asim Code!
@elsharaawy86623 жыл бұрын
Better than my lecturer
@AsimCode3 жыл бұрын
Thanks.
@mohammedmo973 жыл бұрын
Hi asim, one quick question, i am having an issue with solving a problem and i wonder if u could help, im working on a to do list, once i run it i need to input data lets just say 11/11/2021 8pm data test, once i press enter it works perfectly the message is received okay, but say i enter the same date with different event i need it to display the event thats on on that day if there is any, can you help me with that please
@latedeveloper78363 жыл бұрын
Thanks for this. PS Why a port number of '4160' at 4:18 ?
@nims55372 жыл бұрын
you need to choose a port number greater than 1023
@pradumnakadam.3806 Жыл бұрын
You can choose any port no but it should be greater than 1023 and it should be same as client and server code
@michelfarad39652 жыл бұрын
hey bro I just want code for TCP
@bsmacutevision Жыл бұрын
server sends, client receives not the other way.
@peterisongo90023 жыл бұрын
Where is the source code, are you mean?
@latedeveloper78363 жыл бұрын
public static void main(String[] args) throws IOException { DatagramSocket server = new DatagramSocket(4160); byte[] buf = new byte[256]; DatagramPacket packet = new DatagramPacket(buf, buf.length); server.receive(packet); String response = new String(packet.getData()); System.out.println("Response Data: " + response); server.close(); } }