BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-10-2008, 03:30 PM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Model: curve
PIN: N/A
Carrier: tmobile
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Trouble Making socket connection over wifi

Please Login to Remove!

Hi All,
I'm having problems making a socket connection over wifi to my desktop. I'm using a 8320, building with jde 4.2.1.41. This works perfectly on the emulator as usual.
Snippet of the code i'm using:

Code:
 String url = "socket://" + _host + ":" + _port + ";interface=wifi;deviceside=true;";
                        System.out.println("Connecting to  "+url);
                        StreamConnection sockClient = null;
                        sockClient = (StreamConnection) Connector.open(url, Connector.READ_WRITE);
                         System.out.println("Connected to "+url);
I've done a trace on the server and wireshark does not see the connection coming in. I can browse the internet using wifi from the device, it's just when the app runs it does not connect and blocks on the open call.
I've also tried using a SocketConnection instead of StreamConnection with no change in behaviour.
I've also tried removing deviceside=true and changing it to false, with no luck.
Any ideas and thanks ahead of time.

Last edited by op1984 : 09-10-2008 at 03:31 PM. Reason: forgot to metion deviceside param
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

Gikfun USB Programmer CH341A Series Burner Chip 24 EEPROM BIOS Writer 25 SPI Fla
$11.17
Gikfun USB Programmer CH341A Series Burner Chip 24 EEPROM BIOS Writer 25 SPI Fla picture46-PCS IC 24LC32A-I/P EEPROM 32KBIT 400KHZ PDIP MICROCHIP 24LC32 24LC32AIP
$14.47
46-PCS IC 24LC32A-I/P EEPROM 32KBIT 400KHZ PDIP MICROCHIP 24LC32 24LC32AIP pictureATMEL AT24C256 DIP8 24C256 DIP-8 EEPROM
$0.99
ATMEL AT24C256 DIP8 24C256 DIP-8 EEPROM pictureATMEL AT24C128 2DB 24C128 SOP-8 SOP8 2-Wire Serial EEPROM
$4.22
ATMEL AT24C128 2DB 24C128 SOP-8 SOP8 2-Wire Serial EEPROM picture230-PCS IC 93C46B-I/P EEPROM 1KBIT 2MHZ 8-PIN PDIP MICROCHIP 93 93C46B-I/P 93C46
$47.55
230-PCS IC 93C46B-I/P EEPROM 1KBIT 2MHZ 8-PIN PDIP MICROCHIP 93 93C46B-I/P 93C46 picture






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