In my application, I want to send some data(say, "Hello") from my app to my PC over WIFI network. In PC, a service will listen to that data. But i don't have any idea of sending data over WIFI. I didn't get any proper references too. can someone help me. Thanks in advance.
send data from phone to PC via WIFI
1.6k views Asked by Pradeep CR AtThere are 2 answers
AudioBubble
On
This depends on what you want the service on the PC to do with the received data, really. For all I know, you might find some off-the-shelf software that can help you set up this service. However, as others mention here, http is definetely the easiest way to do this. If you cannot find any existing software for the "listening pc", you'll need to write a program that listens at a predetermined port for http traffic (I wouldn't use the standard http port, 80, since you might run into conflicts with existing http software). You can do this quite easily in java, using Serversocket and/or Socket (as Tobias Rizau mentions above). Personally, I'd write a C/C++ program, since imo. that makes a better service, but that's absolutely not necessary (especially if you only know Java).
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in SOCKETS
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- My server TCP doesn't receive messages from the client in C
- how is strncpy able to copy from source to empty destination?
- Python Multicast packet receiver stops receiving multicast packets when computer is connected to WiFi
- Python Client-Server Communication with Protocol
- Reversed TLS re-connection issue
- Android 13 & 14 seem to close WebSocket connection, if i put app in background, after ~20s
- Java SocketException: Connection reset,. What is the cause?
- Multipart/form-data with chunked data transfer (ICAP protocol)
- View Socket View
- Client connection timeout during Android & Windows PC communication via sockets
- Browser connect to raw sockets even possible?
- Protocol 43200 after unpacking received data
- Unity SocketIo using Best http2 plugin want to use in webgl
- How does pre-allocating a pool of SocketAsyncEventArgs objects upfront improve the performance of a server application in c#
Related Questions in WIFI
- expression 'net.sniff.http.response' did not match any filter
- WiFiNINA with Raspberry Pi Pico SDK
- How to use WiFi and Ethernet at same time?
- how to tell If Device on WLAN are using internet?
- Connect wifi service with dbus-native
- Questions about having emulated Wifi EXACTLY match host wifi in android studio
- Is there a way to gather the SSIDs of the connected networks in the background?
- Pyrad client wifi connection failure
- Is there any way to get the WiFi contention window (CW) min and max value in Linux 80211 subsystem?
- Is that possible to send a file to a zebra printer to print it by a web application on a phone using just WI-FI?
- Fetching Wifi-Scanning location system setting on Android without deprecated functions
- ESP32 (ESP IDF) Fails to change to other STA config (generated by user) at runtime
- OSError: [Errno 1] EPERM connecting to WLAN on Raspberry Pi Pico W
- How to implement DPP (wifi easy connect) with out of band credentials
- Does ESP32 support WiFi Direct?
Related Questions in ANDROID-WIFI
- Android Passpoint
- How Android phones get connected WIFI passwords through ADB
- Android Studio - Android 12 wifi icon hided by mobile data when no internet via wifi
- Android 13 version Wifi Network disconnect not working
- Connecting wifi through url
- How to enable/disable auto connect flag in android wifi saved network
- WifiManager.ACTION_PICK_WIFI_NETWORK not working on Android 13
- Android: connection to Wi-Fi seems not to have access to internet
- RTT ranging between WiFi Aware peers not working
- Android: When scanning for Wi-Fi networks using 'wifiManager.scanResults', I am not always able to get a complete list of devices sometimes
- An alternative for WifiManager's startScan() deprecated method on Android 11 and above?
- Is there a way I can restrict my phone to connect to network I set only?
- Android: When scanning for Wi-Fi networks using 'wifiManager.scanResults', I am not always able to obtain a complete list of devices
- How to connect to Wifi network programatically on Android 10 and above?
- Android 13- Unable to connect with WiFi netork after few attempts
Related Questions in ANDROID-WIRELESS
- arduino ide - ESP32 devkit v1 OTA via internet (HTTPS) looping back and load .bin file every 5 second from website
- Uncaught exception thrown by finalizer for Bluetooth Reconnection in Android - java.io.IOException: socket not created
- How to use scrcpy to run mutiple emulated phyicall devices wirelessly?
- Carrier Identification Android - New carrier
- Wireless Debugging not working in Android Studio on MAC
- ioctl() invocation with 'SIOCGIWNAME' returns EOPNOTSUPP for wireless interface
- Android: connection to Wi-Fi seems not to have access to internet
- HC-05 Bluetooth module help, can not recieive data
- Google Pixel 7 losing debugging connection in wireless debugging, also "Allow USB debugging" keeps on popping up cable connection
- detect wireless debugging option active or not in developer mode in android programmatically
- Wireless Android Debugging Not Showing Available Devices or Connecting
- Is there any way to rename physical devices paired using wi-fi in Android Studio
- Jetpack Compose and Wireless Direct
- Appium ADB Error: Error getting device platform version , when device is connected via tcpip on port 5555
- How to fix the error "E: Unable to locate package wireless-tools" in termux
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
What you need is a propper protocol which both, your server and your phone can easily deal with.
If you don't send sensitive data, I think easiest would be HTTP