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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -