Hi all,
I've copied the example of RPC usage from the Python's doc.
When the client and server were on the same PC ("localhost") (I use
Windows)
it worked ok. But putting the server on a different PC raised the
error:
gaierror: (11001, 'getaddrinfo failed')
The error was raised upion accessing some function of the server,
i.e.,
print s.add_nums(1, 2, 3) # server registered function
PCs in our organization are accessed by "\\<name>" so I used
s = xmlrpclib.Server(r'http://\\pc_name:8000')
I got the same error when I put some non-existing name.
Trying to remove the double-backslash from the PC's name raised the
error:
error: (10061, 'Connection refused')
I'll appreciate your help on this.
Thanks
iu2 5 3889
iu2 wrote:
>
Hi all,
I've copied the example of RPC usage from the Python's doc.
When the client and server were on the same PC ("localhost") (I use
Windows)
it worked ok. But putting the server on a different PC raised the
error:
gaierror: (11001, 'getaddrinfo failed')
The error was raised upion accessing some function of the server,
i.e.,
print s.add_nums(1, 2, 3) # server registered function
PCs in our organization are accessed by "\\<name>" so I used
s = xmlrpclib.Server(r'http://\\pc_name:8000')
I got the same error when I put some non-existing name.
Trying to remove the double-backslash from the PC's name raised the
error:
error: (10061, 'Connection refused')
I'll appreciate your help on this.
Maybe using the IP-address helps?
Diez
On Oct 22, 10:21 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
iu2 wrote:
Hi all,
I've copied the example of RPC usage from the Python's doc.
When the client and server were on the same PC ("localhost") (I use
Windows)
it worked ok. But putting the server on a different PC raised the
error:
gaierror: (11001, 'getaddrinfo failed')
The error was raised upion accessing some function of the server,
i.e.,
print s.add_nums(1, 2, 3) # server registered function
PCs in our organization are accessed by "\\<name>" so I used
s = xmlrpclib.Server(r'http://\\pc_name:8000')
I got the same error when I put some non-existing name.
Trying to remove the double-backslash from the PC's name raised the
error:
error: (10061, 'Connection refused')
I'll appreciate your help on this.
Maybe using the IP-address helps?
Diez- Hide quoted text -
- Show quoted text -
No, that doesn't help either.
May be I don't use it right.
I tried "http://1.2.3.4:8000"
and
r"http://\\1.2.3.4:8000"
with no success.
>Maybe using the IP-address helps?
>> Diez- Hide quoted text -
- Show quoted text -
No, that doesn't help either.
May be I don't use it right.
I tried "http://1.2.3.4:8000"
and
r"http://\\1.2.3.4:8000"
with no success.
The former should work. The latter is Windows-name-style and has nothing to
do here.
I'm not a windows-user, but there should be ways to determine which program
listens to which port on a machine.
And a common problem is that servers listen on 127.0.0.1 instead of the
ethernet interface.
Try putting the server's IP as argument to the listening XMLRPC-server, and
check with the windows-netstat-equivalent if it works out.
Diez
iu2 wrote:
Hi all,
I've copied the example of RPC usage from the Python's doc.
When the client and server were on the same PC ("localhost") (I use
Windows)
it worked ok. But putting the server on a different PC raised the
error:
gaierror: (11001, 'getaddrinfo failed')
The error was raised upion accessing some function of the server,
i.e.,
print s.add_nums(1, 2, 3) # server registered function
PCs in our organization are accessed by "\\<name>" so I used
s = xmlrpclib.Server(r'http://\\pc_name:8000')
I got the same error when I put some non-existing name.
Trying to remove the double-backslash from the PC's name raised the
error:
error: (10061, 'Connection refused')
I'll appreciate your help on this.
Thanks
iu2
Don't use the \\. That's a windows networking convention, and it does
not apply if you are using http. Your error messages tell you this.
The first one (r'http://\\pc_name:8000') could not resolve the address.
The second one reached the server just fine, but the server rejected the
client's request. So now the issue is why is the request being
rejected? Did you check your firewall to see if it is blocking access
to port 8000 on the ethernet adapter?
Cheers,
Cliff
On Oct 22, 12:47 pm, "J. Cliff Dyer" <j...@sdf.lonestar.orgwrote:
iu2 wrote:
Hi all,
I've copied the example of RPC usage from the Python's doc.
When the client and server were on the same PC ("localhost") (I use
Windows)
it worked ok. But putting the server on a different PC raised the
error:
gaierror: (11001, 'getaddrinfo failed')
The error was raised upion accessing some function of the server,
i.e.,
print s.add_nums(1, 2, 3) # server registered function
PCs in our organization are accessed by "\\<name>" so I used
s = xmlrpclib.Server(r'http://\\pc_name:8000')
I got the same error when I put some non-existing name.
Trying to remove the double-backslash from the PC's name raised the
error:
error: (10061, 'Connection refused')
I'll appreciate your help on this.
Thanks
iu2
Don't use the \\. That's a windows networking convention, and it does
not apply if you are using http. Your error messages tell you this.
The first one (r'http://\\pc_name:8000') could not resolve the address.
The second one reached the server just fine, but the server rejected the
client's request. So now the issue is why is the request being
rejected? Did you check your firewall to see if it is blocking access
to port 8000 on the ethernet adapter?
Cheers,
Cliff- Hide quoted text -
- Show quoted text -
Cliff and Diez, thanks. That helped. The server indeed was listening
on 127.0.0.1. I changed the hostname from "localhost" to
socket.gethostname() and it worked! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Larry |
last post by:
I've had a production system running for a long time that uses
xmlrpclib with timeoutsocket, and with my recent upgrade to 2.3 it's
no longer able to use xmlrpclib with the xmlrpc servers I...
|
by: danu kusmana |
last post by:
Hi
Im trying to figure out why the same server script I
use is running slower in Windows than in Linux.
ServerTest.py:
#! /usr/bin/env python
import SocketServer
|
by: Skip Montanaro |
last post by:
I decided to use SimpleXMLRPCServer for an xml-rpc server. As I understand
it, if I register an instance like so:
myserver.register_instance(MyStuff())
then it will call...
|
by: Daniel Crespo |
last post by:
Hello,
Does anyone know which methods do I have to override for allowing Nones
to be accepted and sended from SimpleXMLRPCServer to the client?
Thanks
Daniel
|
by: Laszlo Nagy |
last post by:
Hello,
I ran in the same problem again. Many others have the same problem. Just
Google for this: "SimpleXMLRPCServer allow_none site:python.org".
Looks like the 'allow_none' patch was commited...
|
by: Rudy Schockaert |
last post by:
After some Googling I found a post of someone who wanted to do exactly
as what I want to do now.
There is however a problem in his code that makes the service fails
after the first connection. I...
|
by: Achim Domma |
last post by:
Hi,
is SimpleXMLRPCServer multithreaded or how does it handle multiple
clients? I want to implement a simple server which will be queried by
multiple processes for work to be done. The server...
|
by: Sean DiZazzo |
last post by:
Why is the following not working? Is there any way to get keyword
arguments working with exposed XMLRPC functions?
~~~~~~~~~~~~~~~~ server.py
import SocketServer
from SimpleXMLRPCServer import...
|
by: Russell Warren |
last post by:
I'm running python 2.5.1 and it seems that SimpleXmlRpcServer is not
setup to support the base datetime module in the same way xmlrpclib
has been with "use_datetime". I see that someone (Virgil...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
|
by: SueHopson |
last post by:
Hi All,
I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...
| |