BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-29-2008, 02:50 AM   #1 (permalink)
New Member
 
Join Date: Apr 2008
Model: 8300
PIN: N/A
Carrier: Vodafone
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Problem with socket connection

Please Login to Remove!

Hi,
i try to make a socket connection with blackberry 8300 simulator and it's impossible.
I read a lot of post about this, blackberry documentation, etc. but i can't find the solution.
This is the code:
Code:
//in <ip of server> I write the real ip that is a external ip
final String URL = "socket://<ip of server>:7777;deviceside=true;";
StreamConnection conn = null;
conn = (StreamConnection)Connector.open(URL);
//...
the exception is an IOException with message: Bad SRC_PORT
I don't have firewall, i try ping the ip and the answer is correct
I write the port because isn't the classic 4444 port...
any idea?
Offline  
Old 04-29-2008, 03:09 AM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Model: 8300
PIN: N/A
Carrier: Vodafone
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default upgrade

i change one thing and the error message is differen:
the URL String now is
socket://<ip of server>:7777;deviceside=true;apn=<apn name>;tunnelauthusername=<user>;tunnelauthpassword=<psw>;

Now the error is an IOException with the message:Unable to open connection
any idea?
Offline  
Old 04-29-2008, 03:31 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is the MDS simulator running propperly and you can open internet pages using the Simulator's Browser?

try it with "deviceside=false" parameter:

Code:
final String URL = "socket://<ip of server>:7777;deviceside=false";
Offline  
Old 04-29-2008, 04:09 AM   #4 (permalink)
New Member
 
Join Date: Apr 2008
Model: 8300
PIN: N/A
Carrier: Vodafone
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank!!!
i think that i had tried all the possibility (mds on, deviceide true, mds off, deviceide true, etc) but probably i don't try this because now i can connect.
I can't receive answer but i thin it's a personal protocol problem
Thank you very much and sorry for the stupid question
Offline  
Old 04-30-2008, 01:04 AM   #5 (permalink)
New Member
 
Join Date: Apr 2008
Model: 8670
PIN: N/A
Carrier: Sprint
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Socket Connection Problem

Hi,

I am also got struck with same socket connection problem. Kindly let me know if you have done with that.

Thanks,
Bala.
Offline  
Old 05-06-2008, 08:14 AM   #6 (permalink)
New Member
 
Join Date: Apr 2008
Model: 8300
PIN: N/A
Carrier: Vodafone
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

the problem was that i can't use the port for company policy...
Now i can connect and receive
sorry
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Model 8059 Log N Voltage Tester NIM Bin Crate Module
$36.0
Model 8059 Log N Voltage Tester NIM Bin Crate Module picture10PCS AMS1117 LM1117 1A 5V SOT-223 Voltage Regulator
$0.9
10PCS AMS1117 LM1117 1A 5V SOT-223 Voltage Regulator pictureLOT OF 3 BK 9122A DC Power Supplies Outputs: Single, Voltage Output 1: Variable
$900.0
LOT OF 3 BK 9122A DC Power Supplies Outputs: Single, Voltage Output 1: Variable picture150-Amp Stick ARC DC Welder 115/230V Dual Voltage Welding Soldering Machine New
$149.0
150-Amp Stick ARC DC Welder 115/230V Dual Voltage Welding Soldering Machine New pictureHoneywell TH5220D1003 Electronic Low Voltage Wall Thermostat
$2.0
Honeywell TH5220D1003 Electronic Low Voltage Wall Thermostat picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.