473,288 Members | 2,725 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,288 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 4256
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...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.