|
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. >
As an Amazon Associate we earn from qualifying purchases.
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.