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



So if I understand this protocol for the debugger correctly, the client
contacts the server on a well known address, then the server contacts
the client on another port (probably a randomly selected high port).
This is similar to the FTP protocol for data transfers.

A couple of questions regarding firewall configuration:

Are both of these connections TCP or UDP?
I assume the client selects the port it will listen on and sends it to
the server, If this is true:
    1) Can the client be configured to select a fixed port?  (This would
make it easy for the firewall guys)
    2) Does the server always use a fixed source port for the
connections back to the client?
    3) Is this protocol documented so someone (maybe me) could write a
FW-1 firewall script to handle it?

This is the information that will be needed to configure a firewall to
permit the connection.

One additional note.  You can usually tell if it is a firewall issue by
looking at the results of "NETSTAT *CNN" on the AS/400.  Look for the
client address in the "Remote Address" field.  If the state shows
"SYN-Sent" for an extended period of time, it means the handshake is
broken.  This could be caused by a firewall, or by an address
translation issues.

P.S.  This type of protocol tends not to survive Port Address
Translation very well, so even if the firewall permits the port
connections, the address translation could be an issue.  This is
especially true for the "DSL/Cable Routers" that are prevelant today.

Phil Groschwitz wrote:

> I'll like to hear what you do to get working through
> the firewall.  I have never been able to do that (in
> part because the systems people have no motivation to
> help.)
>
> Phil
>
> --- Morgan Najjar <morgan2@charter.net> wrote:
> >
> > Yes, this definitely helps.
> >
> > By monitoring in one window the results of the
> > WRKACTJOB, I can now see
> > that when STRDBGSVR seems to do nothing, if I first
> > do the ENDPJ command
> > that you mentioned, it will subsequently start.
> >
> > I also noticed the QDBGSVR listener if I run NETSTAT
> > and choose
> > option-3.
> >
> > So, I think the debug server is now running.
> >
> > However, the distributed debugger still gives me the
> > message "Connection
> > refused, most likely STRDBGSVR was not issued".
> >
> > Vadim, noted that this may be because of firewall
> > issues.  Meaning that
> > though the connection request from the client to the
> > server may be
> > getting through, the response (on a randomly
> > selected port) from the
> > server to the client PC may not be making it
> > through.
> >
> > Still investigating this.
> >
> > Thanks for everyone's help so far.
> >
> > Morgan
> >
> >
> >
> > > -----Original Message-----
> > > From: code400-l-admin@midrange.com
> > > [mailto:code400-l-admin@midrange.com]On Behalf Of
> > xuanchen@ca.ibm.com
> > > Sent: Monday, January 14, 2002 11:06 PM
> > > To: code400-l@midrange.com
> > > Subject: RE: Is CODE going to help me?
> > >
> > >
> > > Morgan,
> > >
> > > Please try the following command:
> > >
> > > ENDPJ SBS(QSYSWRK) PGM(QSYS/Q5BWHSRV)
> > OPTION(*IMMED)
> > >
> > > first before you issue STRDBGSVR command to see if
> > the debug
> > > server could
> > > be started.
> > >
> > > Thanks,
> > >
> > > Xuan Chen, Debug for iSeries
> > > (905) 413-3769 T/L 969-3769
> > > xuanchen@ca.ibm.com
> > >
> > >
> > >
> > > "Morgan Najjar" <morgan2@charter.net>@midrange.com
> > on
> > > 01/14/2002 03:22:11
> > > PM
> > >
> > > Please respond to code400-l@midrange.com
> > >
> > > Sent by:  code400-l-admin@midrange.com
> > >
> > >
> > > To:   <code400-l@midrange.com>
> > > cc:
> > > Subject:  RE: Is CODE going to help me?
> > >
> > >
> > > Well, I reinstalled WDT and the help now works,
> > and the distributed
> > > debugger is getting much further.
> > >
> > > Now the problem is that I can't seem to start the
> > debug server.
> > >
> > > I issue the STRDBGSVR command, but it doesn't
> > start.
> > > Curiously, it was
> > > yesterday.  I could tell because I could run the
> > > corresponding ENDDBGSVR
> > > command, but today, that just informs me that it's
> > not running.
> > >
> > > This seems like it might be the last (hopefully)
> > hurdle.
> > >
> > > Thanks for the replies.
> > >
> > > Morgan
> > >
> > > > -----Original Message-----
> > > > From: code400-l-admin@midrange.com
> > > > [mailto:code400-l-admin@midrange.com]On Behalf
> > Of Phil
> > > > Sent: Saturday, January 12, 2002 9:06 PM
> > > > To: code400-l@midrange.com
> > > > Subject: RE: Is CODE going to help me?
> > > >
> > > >
> > > > Morgan,
> > > >
> > > > If you're using NT or W2K, your problem with
> > Help is probably
> > > > an environment
> > > > variable problem.  Did you install it signed on
> > as one user
> > > > and are using it
> > > > signed on as another?  If so, sign on as the
> > user that
> > > > installed wdts and
> > > > look at the local and system variables.  Any
> > that reference
> > > > WDTS that are in
> > > > local need to be moved either to system or added
> > to the local
> > > > variables of
> > > > the user which will use Code.  The samething
> > probably applies to the
> > > > distributed debugger.
> > > >
> > > > On my pc, the distributed debugger is both in
> > the VAJ group and the
> > > > Websphere Development tools group.
> > > >
> > > > If this doesn't help, be sure to post the
> > version of your
> > > > PC's OS, and the
> > > > version & service pack level of WDTS.
> > > >
> > > > Phil
> > > >
> > > > > -----Original Message-----
> > > > > From: code400-l-admin@midrange.com
> > > > > [mailto:code400-l-admin@midrange.com]On Behalf
> > Of Morgan Najjar
> > > > > Sent: Saturday, January 12, 2002 5:53 PM
> > > > > To: code400-l@midrange.com
> > > > > Subject: Is CODE going to help me?
> > > > >
> > > > >
> > > > > This is a multi-part message in MIME format.
> > > > > --
> > > > > [ Picked text/plain from multipart/alternative
> > ]
> > > > > Hi.
> > > > >
> > > > > I'm new to the AS400 and Websphere Dev Tools,
> > CODE tools,
> > > > etc. and am
> > > > > trying to get my bearings.
> > > > > I'm not even sure if these tools are
> > applicable to my
> > > > situation.  Any
> > > > > help would be greatly appreciated.
> > > > >
> > > > > Here's my situation:
> > > > >
> > > > > I'm working on porting a fairly large C
> > application from Unix to
> > > > > AS400.  Working natively on the AS400 (using
> > the client access
> > > > > emulator), I've been able to compile all the
> > modules with
> > > > the CRTCMOD
> > > > > command and to create the PGM file.  I've also
> > > experimented slightly
> > > > > with running the program in the debugger
> > (again over the
> > > emulator).
> > > > > All the source code is on the AS400, it is not
> > currently
> > > on my local
> > > > > pc.
> > > > >
> > > > > I'm now especially interested in seeing if I
> > have any
> > > > better debugging
> > > > > options.  I've loaded the Websphere Dev Tools
> > and I'm
> > > experimenting
> > > > > and keep running into roadblocks.
> > > > >
> > > > > Specifically I've tried 2 things:
> > > > >
> > > > > 1) I opened the CODE Project Organizer,
> > created a
> > > project, and added
> > > > > one filter for the PGM in my library.  My PGM
> > file
> >
> === message truncated ===
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
> _______________________________________________
> This is the CODE/400 Discussion & Support (CODE400-L) mailing list
> To post a message email: CODE400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
> or email: CODE400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/code400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.