java - Socket called on wrong port -



java - Socket called on wrong port -

i having web server running glass fish 4 on port 8080 in local. having standalone java socket server running in local on port 9010.

when seek access webservice objective c on glass fish server using nsurlconnection on port 8080, socket gets called though runs on different port. nsurl connection code provided below,

nsmutableurlrequest* request = [[nsmutableurlrequest alloc] initwithurl:[nsurl urlwithstring:”http://localhost:8080/testapp/customer/authenticate”]]; [request setvalue:@"application/json" forhttpheaderfield:@"content-type"]; [request setvalue:@"application/json" forhttpheaderfield:@"accept"]; [request sethttpmethod:@“post”]; [request sethttpbody:myjsonrequestdata]; [nsurlconnection connectionwithrequest:request delegate:self];

i have searched not find leads. please help

sorry coding bug in server code , other tied issues in client code. interpretation wrong. have solved now.

java objective-c sockets glassfish-4

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -