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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Carrier: TT

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
Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,940
Registered: ‎10-16-2009
My Carrier: Bell

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 Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Carrier: TT

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
Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,940
Registered: ‎10-16-2009
My Carrier: Bell

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

As I posted earlier:
http://supportforums.blackberry.com/t5/Java-Development/How-to-run-D-eclipse-SDK-3-6-2-win32-eclipse... 

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Carrier: TT

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
Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,940
Registered: ‎10-16-2009
My Carrier: Bell

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 Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.