Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.

Re: How to run D:\eclipse-SDK-3.6.2-win32\eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\samples\com\rim\samples\server\socketdemo

I type local host. 137.***.***.**, but the " Send Hello" & " Now, wait for the Goodbye".does not come out on the client screen or server screen.

 

How could I make " Send Hello" & " Now, wait for the Goodbye", which apears on screen.

 

Thank your quick reply.


-Fight with BB10
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: How to run D:\eclipse-SDK-3.6.2-win32\eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\samples\com\rim\samples\server\socketdemo

Don't use localhost, just the IP. Please respond with more information on the changes made (code snippet, screenshot etc)  if further support is needed.

Garett
@garettBeuk
--
Goodbye everybody!
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.

Re: How to run D:\eclipse-SDK-3.6.2-win32\eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\samples\com\rim\samples\server\socketdemo

String url = "socket://" + _screen.getHostFieldText() + ":44444" + (_screen.isDirectTCP() ? ";deviceside=true" : "");
connection = (StreamConnection)Connector.open(url);

 

How to change it?

My IP:137.***.***.**.

 

Really noob question.

 

Thx ur quick reply.

 

-Fight with BB10
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: How to run D:\eclipse-SDK-3.6.2-win32\eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\samples\com\rim\samples\server\socketdemo

Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.

Re: How to run D:\eclipse-SDK-3.6.2-win32\eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\samples\com\rim\samples\server\socketdemo

Change "Localhost:"

" to "http://192.168.1.100:8080 "

 

Is it correct??


 


-Fight with BB10
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: How to run D:\eclipse-SDK-3.6.2-win32\eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\samples\com\rim\samples\server\socketdemo

Nope, you are using sockets, not HTTP and the server sample is listening on port 4444 by default. The client adds the protocol, so all you should need is 192.168.1.100 if that is your current IP.

Garett
@garettBeuk
--
Goodbye everybody!