Help! Chat Apps - Changing The "IP & Port" to Username

Discussion in 'Python' started by rowan99, Dec 19, 2021.

  1. rowan99

    rowan99 New Member

    Joined:
    Dec 18, 2021
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Hello guys, I'm a student that just starting my new journey in python programming, and i need a little help from professional.
    First of all I have been assigned to build a simple chatting apps in python.
    Here's what it looks like :
    terminals.png
    - And I need to have user on the client side to input a username so it can distinguish between the client (Terminal 2 & 3 : Client).
    - And changing the output on the server side (IP & Port name into username that user input on the client side)(Terminal 1 : Server).
    - changing the "[Me]" and the "IP & Port" (if another client joining the server) output on the client side to username.
    - And adding the KeyboardInterrupt to client side (Terminal 3).
    Here's my code for the server :
    server1.png
    server2.png
    server3.png

    Here the code for client side :
    client1.png
    client2.png

    I've already tried to change it but no success at all.
    Can someone please explain it to me?
    Thank you in advance.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice