John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

How can I Test on localhost url

I am trying to test my server using localhost on my PC when i send a test request it shows this message (i am using the following URL);

http://localhost:1180/m/Dispatcher/Su...

{
"status":"0 ",
"url":"http://localhost:1180/m/Dispatcher/Su...",
"response":"org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:1180 refused"
}

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How can I Test on localhost url

Looks like something on the service (server) side. Check to make sure your server is open to make connections.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

How can I Test on localhost url

It didn't work;
I am using ASP.net WebAPi from visual studio express to test.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How can I Test on localhost url

Not sure how we can help.. the error is coming from your local server. Check in dev. tools, Network tab what exactly do you get back from the server.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

How can I Test on localhost url

i am testing fine with asp.net using an external application called fiddler. and when i send a request to the local host server i am receiving the info just fine. But i would rather test it under your platform to check the response with the front end i designed .

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

How can I Test on localhost url

any ideas how we can nail down the issue?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How can I Test on localhost url

Appery.io is running in the cloud -- it doesn't know what is localhost. You should specify an IP address.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

How can I Test on localhost url

ok, i will have to wait for my senior programmer to come back tomorrow. he left for the day. We'll get back to this issue tomorrow. Thanks for your response. Hopefully that will work...

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

How can I Test on localhost url

Hi, i tried these ip addresses:

http://127.0.0.1:1180/m/Dispatcher/Su...
and
http://192.168.1.69:1180/m/Dispatcher...

the response I get is like this:

{
"status":"0 ",
"url":"http:/127.0.0.1:1180/m/Dispatcher/SubmitLoad",
"response":"java.lang.IllegalArgumentException: Host name may not be null"
}

Im using Visual Studio. If these are not the correct ip's, how do i find the correct ip address to use?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How can I Test on localhost url

127.0.0.1 won't work as it's the same as localhost.

I tried the IP address in the browser -- I can't connect. It has to be accesssible on the Internet.

Return to “Issues”