How to create wi-fi packet sniffer? [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 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

Related

Codename One Sockets Send Message to Client [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 write a simple App for me (Android). For this it is necessary that the server can send data to my client (only one client at a time) but unfortunately i have no idea how to use sockets or websockets with codename one.
Can someone please post a small examplecode how to establish connection, listen on it and send some small data?
greetings
Captain
You need to use the cn1lib from Steve Hannah to access websockets. Its available here: https://github.com/shannah/cn1-websockets
Found thru looking at https://www.codenameone.com/cn1libs.html
Sockets are a bit problematic though, you might want to look at push, pubnub or just https if applicable. See the chat app demo parts 5 & 6 for the former:
https://www.codenameone.com/blog/building-a-chat-app-with-codename-one-part-5.html
have a look at this example code: https://towhidz.wordpress.com/2012/03/03/simple-chat-applicationclient-server-in-android/
Google is your friend

Reading data of android phones using Java [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
My goal is to build an application to send text messages through android phones using computer connected to the phone using a cable.
In order to do so and to provide a good UI, I will need to read messages from my android phone to my computer. I have a slight idea that to do this I will first have to make an application using the message reading privileges and put it on my phone. Then I would need to read the messages through that application.
What I do not know is that how will I read this to my computer which has been connected using a cable to the phone. I will be using Java as the language to do this. Please advise.

How to make the simplest software-controlled ON/OFF hardware with Java? [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 want to make the simplest and most reliable on/off device controlled from a compuer software (Java).
I was thinking about sinus sound singnal + RC filter with relay for specific frequency, but unfortunatelly I can't use sound card - it is already occupied for different purposes.
How can I achieve this without much compatibility/reliability issues. It should work both on Unix and Windows
I mean an output device, so I want to turn on/off relay from Java software.
USB MIDI adapter and then midi to relay .
Maybe use a Raspberry Pi (includes GPIO controller). Put a web service to control the GPIO. The web service is accesable from any HTTP client.
http://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/

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.

How to communicate between mobile with PC? [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 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.

Categories

Resources