![]() |
2010-10-31
, 19:38
|
|
Posts: 172 |
Thanked: 160 times |
Joined on Jan 2010
@ Sweden
|
#32
|
![]() |
2010-10-31
, 19:55
|
Posts: 169 |
Thanked: 56 times |
Joined on Jan 2010
@ Italia
|
#33
|
![]() |
2010-10-31
, 20:16
|
Posts: 169 |
Thanked: 56 times |
Joined on Jan 2010
@ Italia
|
#34
|
![]() |
2010-10-31
, 20:17
|
Posts: 334 |
Thanked: 45 times |
Joined on Jan 2010
|
#35
|
![]() |
2010-10-31
, 20:32
|
Posts: 71 |
Thanked: 88 times |
Joined on Dec 2009
|
#36
|
HOST, PORT = "192.168.0.1", 50007
![]() |
2010-10-31
, 20:35
|
Posts: 334 |
Thanked: 45 times |
Joined on Jan 2010
|
#37
|
It means that the variable HOST has not be set. Have you got the latest client.py and did you put the desktop pc ip address in?
Code:HOST, PORT = "192.168.0.1", 50007
![]() |
2010-10-31
, 20:37
|
|
Posts: 172 |
Thanked: 160 times |
Joined on Jan 2010
@ Sweden
|
#38
|
![]() |
2010-10-31
, 21:21
|
Posts: 334 |
Thanked: 45 times |
Joined on Jan 2010
|
#39
|
Windows XP working example.
@badboyuk
That looks strange, line 85? client.py is only around 68 lines.
Try use a clean/original client.py file then change the IP to your desktop/servers internal IP.
After that you just take the server.py also change the IP to your internal IP in my case it was "192.168.0.199" then you go to line 62 and replace it with the line i posted previous, or you can change it however you want it to be formated. Thats pretty much it if you want to have "custom names" showed up on some numbers then you add them "numbers" varibel in the client.py just like the examples.
![]() |
2010-10-31
, 21:29
|
Posts: 71 |
Thanked: 88 times |
Joined on Dec 2009
|
#40
|
client.py
# CHANGE THE HOSTNAME TO THE HOSTNAME OR IP OF THE PC RUNNING THE SERVER COMPONENT
HOST, PORT = "192.168.0.1", 50007
changed it to:
# Myhostname, PORT = "192.168.0.2", 50007
HOST, PORT = "192.168.0.2", 50007
I'm trying the best way to starting/stopping after network connection/disconnection. Moreover it would be nice to send messages to multiple IPs : home, work, etc.
Last edited by cipper; 2010-10-31 at 19:45.