472,958 Members | 2,695 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

XP-> linux socket (XMLRPC) connection errors

Hello everyone,

We have a linux server (Fedora core 7, default install, firewall turned off) and a bunch of windows XP machines on network/domain.

All machines are visible and I can get to both windows and linux by various methods.

We are trying to resolve a problem of not being able to connect to the linux box from the xp machines using python XMLRPC. (This is the module used in the software I am trying to set up)

Python is at 2.4 and 2.5 on windows machines and 2.5 on Linux.

Using this sample code from
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81549/index_txt
Expand|Select|Wrap|Line Numbers
  1. # Server code
  2.  
  3. import SimpleXMLRPCServer
  4.  
  5. class StringFunctions:
  6.     def __init__(self):
  7.         # Make all of the Python string functions available through
  8.         # python_string.func_name
  9.         import string
  10.         self.python_string = string
  11.  
  12.     def _privateFunction(self):
  13.         # This function cannot be called through XML-RPC because it
  14.         # starts with an '_'
  15.         pass
  16.  
  17.     def chop_in_half(self, astr):
  18.         return astr[:len(astr)/2]
  19.  
  20.     def repeat(self, astr, times):
  21.         return astr * times
  22.  
  23. server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8000))
  24. server.register_instance(StringFunctions())
  25. server.register_function(lambda astr: '_' + astr, '_string')
  26. server.serve_forever()
  27.  
Expand|Select|Wrap|Line Numbers
  1. # Client code
  2.  
  3. import xmlrpclib
  4.  
  5. server = xmlrpclib.Server('http://localhost:8000')
  6. print server.chop_in_half('I am a confidant guy')
  7. print server.repeat('Repetition is the key to learning!\n', 5)
  8. print server._string('<= underscore')
  9. print server.python_string.join(['I', 'like it!'], " don't ")
  10. print server._privateFunction() # Will throw an exception
  11.  
I can get XP machines to talk to each other and if I run it on the linux server it connects to itself, but if I try and get XP->Linux or Linux->XP I get connection errors such as

socket.error: (10061, 'connection refused')
or
socket.error: (10060, 'Operation timed out')

If I try and run the server on a port on the linux box and then from xp try to telnet to it, I get
Connecting To Linux-Server...Could not open connection to the host, on port 55670: Connect failed

But if I try to telnet from XP to the server running on a port on another XP machine, I can connect and when I type garbage I get a response, in the form of an error and the server prints out what I typed..
eg response = Message: Bad request syntax ('ssdsadsdasdasdasdasdasdasd')
server message = <my computer> - - [30/Oct/2007 17:06:50] code 400, message Bad request syntax ('ssdsadsdasdasdasdasdasdasd')

So what I need help with is what is going on with the connection between the two different operating systems? Is there anything I can try/read/look at to get this stuff working, as we/I am really stumped here.

I hope I have explained this properly, and someone out there can help.

Getafixx
Oct 30 '07 #1
1 4232
bartonc
6,596 Expert 4TB
This really makes me wish that I had a linux box to test this on. The project that I am currently working on may soon need to cross this platform barrier and I'm looking forward to setting one up. But it's crunch time at the moment so that will have to wait a while.
Oct 30 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Stephen Remde | last post by:
is it possible to make vb.net apps have xp style buttons in xp? Stephen
1
by: Hugo | last post by:
I have a dual boot machine, runs Win XP pro and Win XP Pro 64, XP boots from C and XP 64 boots from D. They both have VS 2005 Beta 2 installed. I have a webapp developed in Win XP (32) which...
1
by: Steve Claflin | last post by:
I have a database with a moderate number of records in several tables (the biggest table at the moment is about 800 records). In development it got moved between 2K and XP repeatedly. Several...
1
by: Scott Chang | last post by:
Hi all, 1)I used Microsoft Visual C++.NET (2002) on my Windows Me and Windows XP Home Edition for the last one and half years. 4-5 weeks ago, I upgraded my PC from Windows XP Home Edition to...
4
by: J-T | last post by:
I'm trying to read an excell file in my .Net application using Office XP Primary Interop Assemblies (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_oxppias.asp)....
0
by: Chenghui Li | last post by:
We have a problem with the Windows XP theme: We have a IDE which allows other developers to develop visual programs for their customers. Our IDE allow them to set font for window captions easyly...
4
by: Nate Hekman | last post by:
I can understand that one wouldn't be able to run a full-fledged web server from XP Home, but is there not a toned-down version of IIS/ASP.NET a developer can use on XP Home? I just bought a new...
4
by: Ted Duross | last post by:
Hi, I would like to install VS 2003 on a computer with XP Home. Original documentation says I should expect limited functionality ( no ASP.NET Web applications or ASP.NET XML Web service ). Is...
2
by: 13Rockes | last post by:
I am in the process of writing programs using VB6 in XP Pro. However, I am thinking about starting over using VB2005 as my company is migrating to Vista. Two questions... What kinds of...
10
by: nik | last post by:
Hi, I've compiled my application on my vista machine, and it won't run at all on my xp machine. In the windows error report I get Exception code; 0xe0434f4d. I searched for that exception, but...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
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...
0
isladogs
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...
0
NeoPa
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...
2
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 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.