× 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.



Is there anything I have to do to the services table (under tcpadm) so that
I can configure the port for telnet.

The reason I as is that I tried telnet x.x.x.x portno and I get the message:

        Connecting To <HOST>...Could not open a connection to host on port
<portno> :
        Connect failed

I also tried adding a telnet entry in the services table and removing the
other one. That is:

telnet <portno> tcp
telnet <portno> udp

What do I do next???

Thanks again for all the help.

-jose a.
-----Original Message-----
From: Scott Klement [mailto:klemscot@klements.com]
Sent: Wednesday, June 05, 2002 2:44 PM
To: midrange-l@midrange.com
Subject: Re: Sockets



Rather than writing a test program, you'd be better off testing
connectivity using a program that you know works.   That way, if it fails
you can be reasonably sure that the problem is in the TCP configuration or
firewall rather than in the program code itself.

Can you ping your AS/400 from another machine?
   From an MS-DOS/Unix/OS/400 prompt on a machine that you know
    works, type:   ping x.x.x.x

    Where x.x.x.x is the IP address of the AS/400 you're troubleshooting.
    (such as 192.168.0.1)

If ping works, can you telnet to it?
   From an MS-DOS/Unix/OS400 prompt on a machine that works, type:
       telnet x.x.x.x

If telnet works, can you telnet to the specific port that your custom
server program works on?
   From an MS-DOS/Unix/OS400 prompt on a machine that works, type:
       telnet x.x.x.x portno

   Where portno is the port number that the custom server program
   is using.


If you do want info on writing sockets programs, I wrote a tutorial on
sockets in RPG IV, which might help you:

    http://klement.dstorm.net/rpg/socktut/


Good luck!


On Wed, 5 Jun 2002, Rodriguez, Jose Amable wrote:
>
> Hello all,
>
>       I have a question on Sockets (TCP/IP) and the AS/400.  I have a
> program that uses sockets to connect to a job on the AS/400 and
communicate
> with it.  Unfortunately, I have been unable to get this to work.
>
> What I am looking for is some help in setting up a very simple socket
> program so that I can test connectivity to our AS/400 and determine
whether
> the problem is the network setup of the AS/400 or the program itself.
>
> Any help in steering me to the right area where I can find sample socket
> programs would be greatly appreciated.
>

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


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.