473,765 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XP-> linux socket (XMLRPC) connection errors

1 New Member
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.activestat e.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 ('ssdsadsdasdas dasdasdasdasd')
server message = <my computer> - - [30/Oct/2007 17:06:50] code 400, message Bad request syntax ('ssdsadsdasdas dasdasdasdasd')

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 4276
bartonc
6,596 Recognized Expert Expert
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
388
by: Stephen Remde | last post by:
is it possible to make vb.net apps have xp style buttons in xp? Stephen
1
2054
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 has gone well and runs fine in XP. I Now want to get this same app running under IIS on XP 64.
1
2766
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 days ago, it wouldn't open, and proposed creating a backup before fixing. OK, but the "fixed version" didn't open -- same messages as the original -- but the backup did. But, in the 800 record table only 200 records appeared. We went back several...
1
6526
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 Windows XP Professional. Recently I tried to install my Microsoft Visual C++.NET (2002) on the new Windows XP Professional Operating System and got the fellowing message: Microsoft Visual C++.NET Setup 1 Windows Component Update
4
4074
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). I have installed Office 2003 on my developemnt box.Will my application be able to read all kinds of Excell file (97-2000-2003)? Dose the wrapper that .Net framework generates backward copatiable? Do I have to have the same version of Office...
0
3050
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 (through a dialog). It works fine fo W98, 2000, NT, and XP is the theme is Classic. But on XP if the theme is "Windows XP", the we have a problem: if the developer set the caption font to be say, "Script" (and all non-default font), then the...
4
1827
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 computer to do some ASP.NET development, but ran across http://www.asp.net/download-1.1.aspx?tabindex=0&tabid=1 which seems to indicate I'm out of luck unless I upgrade my OS. :-( I'm hoping I'm misunderstanding something.
4
1667
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 this still true if Service Pack 2 is installed? Thanks, Ted
2
1725
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 problems will I have installing and running my VB6 app under Vista? If I develop VB2005 apps under XP, what kinds of problems will I have
10
1814
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 didn't see anything related to my problem The xp machine does have vb6 installed on it, could that be an issue? What reasons and solutions for this problem?
0
10160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.