Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: socket loop problem
Post: RE: socket loop problem

(Nov-28-2019, 07:23 AM)buran Wrote: well, that is error because it cannot resolve whatever remote host you pass as argument. The problem is in the new line char at the end of each line when you read...
monamour Networking 9 6,732 Nov-28-2019, 08:31 AM
    Thread: socket loop problem
Post: RE: socket loop problem

(Nov-27-2019, 11:40 AM)buran Wrote: it's not new error. it's the same one. You have following line in the code that you run print("And IP address is %s : " %socket.gethostbyname(i,0))note that you p...
monamour Networking 9 6,732 Nov-28-2019, 04:49 AM
    Thread: socket loop problem
Post: RE: socket loop problem

(Nov-27-2019, 10:59 AM)buran Wrote: As the error message show, your code from first post is different from the actual code you run Error: print("And IP address is %s : " %socket.gethostbyname(i,0))a...
monamour Networking 9 6,732 Nov-27-2019, 11:27 AM
    Thread: socket loop problem
Post: RE: socket loop problem

I am really sorry this is the error as follows, Error:Traceback (most recent call last): File "C:/host-ip.py", line 20, in <module> get_Host_name_IP() File "C:/host-ip.py", line 16, in...
monamour Networking 9 6,732 Nov-27-2019, 10:12 AM
    Thread: socket loop problem
Post: socket loop problem

Dear All, I have tried to write a code which fetches the Host name and the IP Address for a user. The program is working nice as you can see below in the code, import socket def get_Host_...
monamour Networking 9 6,732 Nov-27-2019, 09:16 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020