473,385 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help with this error : Protocol wrong for this socket

I am running Python 2.4.1 on a HP Tru64 Unix system.

When try to carry out a DNS query as follows :

t = socket.getaddrinfo("labs.bl.uk",None)

I get the error message

socket.error: (41, 'Protocol wrong type for socket')

Am I right in thinking this is something to with the DNS lookup ?. Does
anyone have any idea what may be causing the problem ?.

Bill

Aug 31 '05 #1
0 889

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Adam Bergman | last post by:
Okay, I am working on a credit card validation script, I have it working perfectly (saving the return information from the server to a variable and echoing it for now) other than this weird error...
1
by: Jack Schafer | last post by:
I am trying to download the source code for an array of differant websites, usually i will get something like this from Dilbert.com: HTTP/1.1 200 OK Date: Fri, 23 Apr 2004 00:04:54 GMT Server:...
1
by: Clive | last post by:
Hello everyone, This is my first time posting, up until now i've only used google to seach :) I'm creating a multiplayer minesweeper game in Windows, so I have been reading up on CSockets. I...
3
by: Falk Fassmann | last post by:
Hello people, I have some problem with Debugging in MS Visual C++. I want to generate a TCP/IP-Socket. The compiling-process is fine but when I debugg the project there's occuring some errors...
9
by: AA | last post by:
This is making me crazy!! Please, if some body can help me. I'm testing a ver simple socket client. In my test I just open and close a connection (in a loop) to my local IIS server (port 80)...
2
by: Vitali Gontsharuk | last post by:
Hi! I have a problem programming a simple client-server game, which is called pingpong ;-) The final program will first be started as a server (nr. 2) and then as a client. The client then...
5
by: Jens | last post by:
Hello, I have been looking for some C-code which listens on a user-defined port for incoming data traffic. When data is received, the data is written to a file. I found some C-code (server)...
1
by: orehian | last post by:
Construct a one-time password system. · Write a server code and a client code. The server code takes as input a username and a one-time password from the client and then sends a message...
3
by: Tzury Bar Yochay | last post by:
I am trying to create raw socket: server = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.getprotobyname('ip')) As a result I get the following error: Traceback (most recent call...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.