Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6966209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:09:44+00:00 2026-05-27T16:09:44+00:00

I searching for an open source TCP server that can be configured on the

  • 0

I searching for an open source TCP server that can be configured on the computer to work as server for client applications for Android. As I want to create messaging services between Android devices,

I’ve found Apache Mina open source TCP server, does it work for android OS ?

edit

sorry, for Mina, I don’t mean the server, I mean the general framework. Can I create android java client for android using Apache Mina

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:09:45+00:00Added an answer on May 27, 2026 at 4:09 pm

    As a tcp server I use a simple java application which consists of 1 class. Here it is. Hope this will help you!

    import java.net.*;
    import java.io.*;
    
    public class PortMonitor {
        private static int port = 8080;
    
    
        /**
         * JavaProgrammingForums.com
         */
        public static void main(String[] args) throws Exception {
    
            //Port to monitor
            final int myPort = port;
            ServerSocket ssock = new ServerSocket(myPort);
            System.out.println("port " + myPort + " opened");
    
            Socket sock = ssock.accept();
            System.out.println("Someone has made socket connection");
    
            OneConnection client = new OneConnection(sock);
            String s = client.getRequest();
    
        }
    
    }
    
    class OneConnection {
        Socket sock;
        BufferedReader in = null;
        DataOutputStream out = null;
    
        OneConnection(Socket sock) throws Exception {
            this.sock = sock;
            in = new BufferedReader(new InputStreamReader(sock.getInputStream()));
            out = new DataOutputStream(sock.getOutputStream());
        }
    
        String getRequest() throws Exception {
            String s = null;
            while ((s = in.readLine()) != null) {
                System.out.println("got: " + s);
            }
            return s;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create my own IM and I'm searching an open-source IM APIs.
ATM, I'm searching through open source/close source android applications to identify particular concerns (code
Im searching open source CMS based on kohana. I want to see ideas used
Say I want to look for open source iphone/Android tower defense game on sourceforge/google
I am searching for a design pattern, open source platform or what can else
Searching open source projects , shows me that spec files in the wild do
I've been searching for a library or open source project that does something like
I'm searching for a free, open-source if possible, Java swing library that improves the
I need open source search engine api for searching the files on my server.
I am searching for an open source Java library to generate thumbnails for a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.