Failure to attach to application for remote debugging

Technote (FAQ)


Question

I am trying to debug my application remotely. I have set up the daemon on my local machine but when it is about to attach to the application running on my remote machine I get an error indicating that the attempt to connect has failed and that I need to check the hostname and port number. Why can I not connect?

Answer

You need to make sure that the hostname of both the local system and the remote system can be resolved by the other system. You can do that by issuing the ping command from the local system for the host name of the remote system and vice versa. If either of these are not resolved correctly and the local system is a Windows system, modify the file c:\winnt\system32\drivers\etc\hosts and add the name of the remote system hostname with its correct IP address. For the remote system, if it is a Windows system do the same as above. Otherwise ask the system administrator to add the local machine's host name and IP address to the DNS table.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM Debuggers

Software version:

Version Independent

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1181044

Modified date:

2009-10-27

Translate my page

Machine Translation

Content navigation