× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hey All

I'm trying to understand a TCP/IP connection issue, but I just don't have the
experience to diagnose the problem.

I've got a little RPG program that's trying to establish a connection to a HP
DeskJet Print Server 500.  I can find the device on the network (using
getHostByName()).

I can create a socket with no problem, using:
      sock = socket( cAF_INET: cSOCK_STREAM: cIPPROTO_IP );

I set the socket properties with:
      sin_family = cAF_INET;
      sin_addr = IP;        
      sin_port = port;      

(Port is hardcoded to 4700)

When I try to do the connect, the program errors out.  The error code is 3425,
"A remote host has refused an attempted connect operation."

I have no idea what that means, really.  I've googled for it, and I get a
variety of answers, none of which make any sense in this context.  I can ping
the printer server from a 5250 session, and from a Windows command line.  

I can start the on-board printer server configuration Java app by hitting the
IP address through a browser session.  Using the app, I can see that there
isn't any security in effect on the printer server.

I'm not trying to go through the standard remote output queue process-- I'm
trying to connect to the printer server directly so I can send output to it,
rather than using AS/400 spooling.

My questions are:

1.  What causes a remote host, such as a printer server, to refuse a
connection?
2.  How do I get the print server to accept a connection?
3.  Has anyone tried anything like this before?  If so, how did you diagnose
these problems?  The manual is about four steps shy of useless.

Thanks

-Doc


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.