I want to make a J2ME SocketConnection with a computer running Windows XP. The computer’s IP address is 192.168.1.28
When creating the connection :
SocketConnection sc = (SocketConnection)Connector.open("socket://192.168.1.28:portNumber");
how to know the value to set for the portNumber ?
The port number can be any 16-bit unsigned integer. It must correspond to the port number used by the service you’re connecting to. There are standard ports for various services: 80 for HTTP (web), 25 for SMTP (mail), etc. We can’t tell you what port to use without knowing what you’re actually connecting to.