Numeric host name error (socket, win32)

Discussion in 'Python' started by Mikke Mattsson, Jan 16, 2004.

  1. Does anoyne know how to get the socket-module to resolve numerical hostnames?

    The host address is not resolved correctly.

    >>> import socket
    >>> socket.getaddrinfo("3100",21)

    [(2, 2, 17, '', ('0.0.12.28', 21))]

    If I ping the computer from a dos-prompt, I get the correct address (192.168.65.3)
     
    Mikke Mattsson, Jan 16, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Orpheus66
    Replies:
    0
    Views:
    4,442
    Orpheus66
    Jul 30, 2003
  2. darrel
    Replies:
    4
    Views:
    827
    darrel
    Jul 19, 2007
  3. Laszlo Nagy
    Replies:
    1
    Views:
    4,858
    Mark Wooding
    Jan 27, 2009
  4. Jean-Paul Calderone
    Replies:
    0
    Views:
    974
    Jean-Paul Calderone
    Jan 27, 2009
  5. Laszlo Nagy
    Replies:
    0
    Views:
    553
    Laszlo Nagy
    Feb 1, 2009
Loading...

Share This Page