Ask coding questions

← Back to all posts
What am I doing wrong?
blueandco

Hi, I've been trying to create this chatroom but unfortunately I keep running into errors. The first one was:

So I tried re-naming the one of the files (client.py). Then, it gave me this error:

Here's line 3-6:

Can someone please explain what I am doing wrong?

Voters
blueandco
Comments
hotnewtop
[deleted]

On line 5 you must write ip = socket.gethostname()

blueandco

@Tercoder oh thx a lot