Page 1 of 2
How can I Test on localhost url
Posted: Mon May 20, 2013 11:12 pm
by John Herdean
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"
}
How can I Test on localhost url
Posted: Mon May 20, 2013 11:14 pm
by maxkatz
Looks like something on the service (server) side. Check to make sure your server is open to make connections.
How can I Test on localhost url
Posted: Mon May 20, 2013 11:40 pm
by John Herdean
It didn't work;
I am using ASP.net WebAPi from visual studio express to test.
How can I Test on localhost url
Posted: Mon May 20, 2013 11:42 pm
by maxkatz
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.
How can I Test on localhost url
Posted: Mon May 20, 2013 11:58 pm
by John Herdean
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 .
How can I Test on localhost url
Posted: Tue May 21, 2013 12:15 am
by John Herdean
any ideas how we can nail down the issue?
How can I Test on localhost url
Posted: Tue May 21, 2013 12:15 am
by maxkatz
Appery.io is running in the cloud -- it doesn't know what is localhost. You should specify an IP address.
How can I Test on localhost url
Posted: Tue May 21, 2013 12:23 am
by John Herdean
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...
How can I Test on localhost url
Posted: Tue May 21, 2013 10:23 pm
by John Herdean
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?
How can I Test on localhost url
Posted: Tue May 21, 2013 10:35 pm
by maxkatz
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.