Re: How to get connection to remote host



To check if a server is listening at a particular port or not - you
have to follow the following steps in the command prompt:

telnet <server-name> <port>

Note: the port for http protocol defaults to 80 and that for https
protocol defaults to 443.

Cheers,
Jan

arunkumar.mit@xxxxxxxxx wrote:
How to make sure the remote host is listening to the port i am
connecting, iam just giving the url from which i want the response.

Its really help full to trace the bug.

Thanks
Arun

Daniel Pitts wrote:
arunkumar.mit@xxxxxxxxx wrote:
Hi all,

I am beginner in httpunit i am trying to get resonse from a remote
host, but i am not able to get it

the error is

connnection Exception: connection refused; connect

how can i resolve it

thanks and regards,
Arun

Make sure a few things:
1. The remote host is listening on the port you are trying to connect
to (often 80, or 8080)
2. The host you are connecting to is reachable from the host you are
on. (using ping, for instance)
3. You are specifying the correct host name and port.

Hope this helps. Good luck.

.



Relevant Pages

  • Re: External drives not installing or working properly on USB
    ... with the USB system before but these disappearred when I disabled the ... Only one of the five host controllers is connected to the 6 ... work on any port on the PC? ... operating system to recognise the four additional 'drives'. ...
    (microsoft.public.windowsxp.general)
  • Re: A firewall wont stop this one
    ... On top of that I implement IPF on each host ... >> for further access control to limit NFS, ... By restricting access to the NFS server. ... >> via port filtering that only allowed specific hosts rather than all. ...
    (alt.computer.security)
  • Re: nessus report
    ... when i ran nessus against my bsd box, nessus can detect "the remote host ... There are several ways to detect if a host is up. ... Sometimes services will respond differently if they're firewalled than if they're not listening on a particular port. ...
    (freebsd-questions)
  • Re: /etc/hosts.equiv & .rhosts
    ... want to login at another host, that host needs the first host's name ... best to allow key-only login so hackers can't ... on the port 22 as it WILL be messed with all day long. ... # Protocol 2 only ...
    (comp.os.linux.security)
  • Re: REMOTE DESKTOP NOT WORKING ANY LONGER PLEASE HELP!
    ... I understand that you have checked in the registry *which* port is ... Is the host located at your work? ... be a centrally managed GPO which disables Remote Desktop ... Noest MCSE, CCEA, Microsoft MVP - Terminal Server ...
    (microsoft.public.windows.terminal_services)