What is the port for localhost?

I am trying to attach a debugger to Netbeans. I have entered localhost for the host name, and 92 as the port. But when I try to step into me app, the localhost connection is refused. I am using:

http://wiki.java.net/bin/view/Netbeans/FaqDebuggingRemote

as a reference doc to attach the debugger.

thanks

[329 byte] By [Lasiriusa] at [2007-10-3 3:30:31]
# 1

> I am trying to attach a debugger to Netbeans. I have

> entered localhost for the host name, and 92 as the

> port. But when I try to step into me app, the

> localhost connection is refused.

There is no one "localhost" port, there are lots of them.

The key thing is having a listener running on that port on your local machine.

If you open a command shell and type "netstat -a -b", you'll get to see all the active ports on your machine and the executable that's listening.

Netbeans is an IDE that may or may not have an app server that's hosting your app running inside it. What app server are you running? If it's Tomcat, the usual default port is 8080 for the app. It might be 8888 for debugging. It'll be something else for another app.

See if netstat can help you.

%

duffymoa at 2007-7-14 21:24:25 > top of Java-index,Java Essentials,New To Java...
# 2
The document you linked to explains how to use Netbeans as a debugger for some other program. Whereas the first sentence of your post suggests you are trying to do the opposite. So could you clarify what you are actually trying to do?
DrClapa at 2007-7-14 21:24:25 > top of Java-index,Java Essentials,New To Java...