How to communicate between mobile with PC? [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am developing a program that is used to communicate between a mobile and a pc. I don't have any idea how to start?

To do that you would need to write two separate pieces of software:
1) A Server
2) A Client
I would suggest you install the server on the PC and the client on the phone.
The client would establish a TCP connection to the server and would be able to send messages reliably. Upon receiving the messages from the client (phone) your server (pc) will act accordingly.
You can refer to the java documentation to find two simple samples about creating TCP servers and clients and these should be very helpful. Example Link

You can use the bluetooth of the mobile, and develop a Server in java for your pc.
I have done this process.

Related

How to implement XMPP server in java so as to get upstream messages from GCM server ? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have already implemented client side on android,
android device gets device token and then send it directly to App server using sockets
But I read, that it's better to use XMPP and send message first to GCM server, which then send it to App server
How to implement XMPP server in java? Where do I have to put my server ?
I mean, GCM has to have possibility to achieve my App server
Are you looking to implement one yourself ? If not, consider this list:
Openfire
Firebase
ejabberd

How to create wi-fi packet sniffer? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have long been studying the topics of how to create an WI-FI sniffer for android.
I work on the network routing algorithm, and my first goal is to listen to all network traffic. The second task - is to send broadcast messages. This is possible with on android phones? Yes, I got root access. Where can I read about what I want to do? This is done through sockets?
I do not want to adhere some protocols (eg WI-FI direct) and work with the existing ip-address system. I need the lowest level of interaction of OSI.
I think that it is impossible to establish a connection without sockets. One of the devices have to be a server, and another client

How can I find all servers on the local network? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to design a software in java. I have a client program in my personal computer which is located in a LAN. In other pcs of this LAN server application has been installed. So the image of my system is like this:
Ok, in this system servers have not same port , because some ports may close in each system, these servers just listen to a connection after finding an open port , as well Client doesn't know their IP, but as I mentioned all of these servers and client program are located in a LAN, picture of client program is some thing like this:
When I click the Scan NetWork Button , Client should find all of the listener servers in network , what should I do in this case? Is it possible to find all listener servers with a client in a network with cause I'm new to networking.
What you probably want is some kind of zero-configuration networking instead, like Bonjour/Zeroconf or SSDP. There are several Java implementations for both, as well as lots of native implementations on almost all OS.
They both solve your problem of finding the servers without knowing their IPs or ports.

Is there possible to make an open chat between 2 android devices using SOCKETS? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a problem trying to develop an open chat between 2 android devices using SOCKETS ( server - client ).
I have the code for CLIENT socket and for SERVER socket and it works fine, I can change messages between devices, but I have to refresh the connection always to see the message.
For example: If I send a message from Server to client, in the client side I have to refresh ( reestablish the connection ) to obtain the message i have sent.
The same for sending messages from client to server.
It works fine, but, only if I refresh the connection, and I want to do it automatically.
My big question is: There is a way to make both Client and Server listening continuously for each other??? meaning that if I send an message from server to client, the client will receive and so something with that message without reestablish the connection (refresh ).
In Eclipse, I saw Bluetooth Chat Sample Application for Android 4.2.* and you can do time-reflesh within usage of the sample codes and your demand via Bluetooth.

How to make android multiplayer games without port forwarding [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to make a multi-client application in which somebody is the host and other people join into the game. I need this to be possible without port forwarding so that users can easily set up their server. Is this possible without any help from any of those server hosting companies that help out? Is there any special port that doesn't require port forwarding?
As far as I know, the only possible approach is to use UPnP (Universal Plug and Play). More specific: Internet Gateway Device Protocol (IGDP). This makes the port forwarding go automatically. It is a protocol that has the possibility to ask the gateway to forward a port to your machine. So this isn't really "without" port forwarding, but it will do it automatically, instead of the user having to go and configure their router.

Categories

Resources