How to get connection to remote host  
Author Message
arunkumar.mit@gmail.com





PostPosted: 2006-11-8 23:24:00 Top

java-programmer, How to get connection to remote host 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

 
Oliver Wong





PostPosted: 2006-11-9 0:10:00 Top

java-programmer >> How to get connection to remote host
<email***@***.com> wrote in message
news:email***@***.com...
> 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

Are you able to ping the remote host?

http://www.mysitespace.com/howtoping.asp

- Oliver


 
Daniel Pitts





PostPosted: 2006-11-9 2:48:00 Top

java-programmer >> How to get connection to remote host
email***@***.com 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.

 
 
ChrisWSU





PostPosted: 2006-11-9 3:38:00 Top

java-programmer >> How to get connection to remote host are you behind a NAT device? (linksys/netgear/dlink type router?)

 
 
arunkumar.mit@gmail.com





PostPosted: 2006-11-9 13:42:00 Top

java-programmer >> How to get connection to remote host No i am not able to ping to remote host, how can i do it. I am able to
get response on a browser from the url but when i try it using httpunit
webconversation and webrequest i am get the error

> > connnection Exception: connection refused; connect

Is there any thing i need to change in the configuration.

regards,
arun


Oliver Wong wrote:
> <email***@***.com> wrote in message
> news:email***@***.com...
> > 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
>
> Are you able to ping the remote host?
>
> http://www.mysitespace.com/howtoping.asp
>
> - Oliver

 
 
arunkumar.mit@gmail.com





PostPosted: 2006-11-9 13:42:00 Top

java-programmer >> How to get connection to remote host No i am not able to ping to remote host, how can i do it. I am able to
get response on a browser from the url but when i try it using httpunit
webconversation and webrequest i am get the error

> > connnection Exception: connection refused; connect

Is there any thing i need to change in the configuration.

regards,
arun


Oliver Wong wrote:
> <email***@***.com> wrote in message
> news:email***@***.com...
> > 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
>
> Are you able to ping the remote host?
>
> http://www.mysitespace.com/howtoping.asp
>
> - Oliver

 
 
arunkumar.mit@gmail.com





PostPosted: 2006-11-9 13:52:00 Top

java-programmer >> How to get connection to remote host
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:
> email***@***.com 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.

 
 
arunkumar.mit@gmail.com





PostPosted: 2006-11-9 14:23:00 Top

java-programmer >> How to get connection to remote host Yes i am behind Network Adapter Translation, is it possible to get the
response when we are behing NAT device. If possible let me know it.

Thanks

ChrisWSU wrote:
> are you behind a NAT device? (linksys/netgear/dlink type router?)

 
 
JanTheKing





PostPosted: 2006-11-9 15:54:00 Top

java-programmer >> 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

email***@***.com 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:
> > email***@***.com 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.

 
 
Oliver Wong





PostPosted: 2006-11-9 23:37:00 Top

java-programmer >> How to get connection to remote host
<email***@***.com> wrote in message
news:email***@***.com...
> No i am not able to ping to remote host, how can i do it. I am able to
> get response on a browser from the url but when i try it using httpunit
> webconversation and webrequest i am get the error

You should probably forget about pinging. The telnet advice than Jan
gave you is better. Pinging might give you a false negative if the server is
configured to ignore pings.

- Oliver


 
 
arunkumar.mit@gmail.com





PostPosted: 2006-11-10 14:29:00 Top

java-programmer >> How to get connection to remote host Hi,

When i trying use it by means of telnet the connection is refused,
so is that i might be behind proxy. Or wht could go worng in this. In
httpunit they just given the the url directly as "www.meterware.com" to
get the response when i try to do it, The error pops. Is there anything
they were missing in explaining this, is so let me know it

cheers,
Arun.

On Nov 9, 4:37 pm, "Oliver Wong" <email***@***.com> wrote:
> <email***@***.com> wrote in messagenews:email***@***.com...
>
> > No i am not able to ping to remote host, how can i do it. I am able to
> > get response on a browser from the url but when i try it using httpunit
> > webconversation and webrequest i am get the error You should probably forget about pinging. The telnet advice than Jan
> gave you is better. Pinging might give you a false negative if the server is
> configured to ignore pings.
>
> - Oliver

 
 
Ian Wilson





PostPosted: 2006-11-10 22:19:00 Top

java-programmer >> How to get connection to remote host email***@***.com wrote:
>
> Daniel Pitts wrote:
>
>> email***@***.com wrote:
>>>
>>> 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
>>
>> 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.
>>
>
> 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.
>

You say you can reach this remote host using a web-browser? Does the
web-browser have a local http-proxy configured?

In Internet Explorer, select the "Tools" menu, "Internet Options",
"Connections", "LAN Settings" and see if the "Proxy" is ticked.



 
 
Martin Gregorie





PostPosted: 2006-11-10 23:35:00 Top

java-programmer >> How to get connection to remote host email***@***.com wrote:
> Hi,
>
> When i trying use it by means of telnet the connection is refused,
> so is that i might be behind proxy. Or wht could go worng in this. In
> httpunit they just given the the url directly as "www.meterware.com" to
> get the response when i try to do it, The error pops. Is there anything
> they were missing in explaining this, is so let me know it
>
Well, from where I'm sitting

- ping works
- I can telnet to port 80
- my browser can fetch the main page

You'd better check that you aren't using a proxy and/or being blocked by
a firewall on your site.

--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |