• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IP Gateway ???!!!

 
moh sak
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i'm creating an application that create HttpConnection and as i read i can't connect throw the wap gateway if my mobile is Nokia series60 (Nokia 6600) for example and i should connect to web gateway, can i change the IP gateway of my device from my application ??!!
I read "in this forum" that there is no way to do that but that was 1 year ago. now one year later is the answer same ??

thanks in advance
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it is the same.

Mark
 
moh sak
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for you'r replay mark short but explain all things.
 
Mateen Dar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my mobile project reads from a servlet posted as
http://j2me.zapto.org/WebProject .. will a mobile me able to read from this. it works fine in a emulator
 
moh sak
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
sorry Mateen Dar i did not get your replay, and i try to open the link u add but i cann't access it. can you please re-post your comment

thanks
 
Warsito Wiratno
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a messaging program client (J2ME) and server (Servlet) application by HTTP protocol via GPRS.
I use Motorola C381 to deploy my MIDlet program.
In my MIDlet program I use the ServerSocketConnection feature .
When i run the MIDlet program, the phone display an error, like this,

java.lang.IllegalArgumentException: No port number in

so,
1. Does any mistakes in my MIDlet program?
2. Does Motorola C381 doesn't support the ServerSocketConnection feature?
3. How is solution?

This is my code,

ServerSocketConnection ssc;
String purl;
try {
ssc = (ServerSocketConnection)Connector.open("socket://");
purl = "socket://"+ssc.getLocalAddress()+":"+ssc.getLocalPort();
myForm.append(new StringItem("The Address is:",purl));

SocketConnection sc = null;
while (mTrucking) {
sc = (SocketConnection)ssc.acceptAndOpen();
Reader in = new InputStreamReader(sc.openInputStream());
PrintStream out = new PrintStream(sc.openOutputStream());
out.print("HTTP/1.1 200 OK\r\n\r\n");
out.close();
in.close();
sc.close();
}
}
catch (Exception e) {
Alert alert = new Alert("Error..", "exception: "+e.toString(), null, null);
alert.setTimeout(2000);
mDisplay.setCurrent(alert);
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic