I have a client - server application which I developed and tested on my pc where I use a certain port number and the IP "10.0.2.2" now I wanna move the client to my android device which is located on the same wifi network as my pc ... what do I need to change ?
You need to port it to android platform in context of UI and
frameworks.
Both Android Client and PC Server must be there on same
wifi network, so that they can discover each other.
You must go with a Hello World Program of Android, if you do not have prior
experience with same.
Networking Demos.
Also, threading will be required I think!
Related
Is it possible to connect my Android phone (Redmi Note 7) directly to my Windows (10) PC in such a way that I can make network connections to the PC from the phone, with/without a per-existing WiFi network?
My specific issue is that I want to be able to connect the camera of my android phone with the web browser using a specific IP address. This IP address when typed on the browser would open a screen that would help us to connect with the android device, basically feeding in everything what the android device camera sees.
I've already done my work on the camera2API interface work, I just need some help with the network connection part.
Ideally I'd like a solution that doesn't involve the Internet at all - neither from the PC nor the phone. In my particular situation, it would also be ideal if this can be done over a WiFi network connected via a single IP(same for phone and to be typed on the browser) would suffice.
I really need help with developing an android app that would help me to setup the connection between the android phone and PC using the TCP/IP protocol. There is already an app for serving such a purpose whose link I am providing below, but I have to add some security and login features on the existing app. All i am asking is how would I set up such a connection in the first place and proceed forward with the app.Also, Bluetooth provides a very less upload speed, and about the USB, i am trying to make the total process wireless. the link to the existing app: ip-webcam.appspot.com
Well, I am working at a similar app, and I use a modified web server for configuration and delivering images (I am doing it on the native side though, but I am sure there are plenty of Java web servers out there).
For some special, personal needs I want to use a TIdHTTPServer (component from the Indy project for RAD Studio) on an Android device through a mobile network connection to which I can connect with a client, like a browser, wget or whatever.
My FireMonkey application works as expected on Windows and Android using a WLAN connection. But on Android with a mobile internet connection turned on and WLAN turned off, I cannot establish an external connection to the TIdHTTPServer server running on Android. No instant connection discarding - it's a timeout.
I think it might be something Android related or maybe it has something to do with the way how my cell phone provider handles mobile connections. Maybe they block or simply don't redirect external (mobile) connections, like NAT "firewalls" do, where one has to create a port redirection and so on.
I also tried to add the mobile IP and the port of my server app to the bindings of the TIdHTTPServer component without luck (error says that the address and port are already in use). IP is version 4 and Android is version 6. INDY is 10.6.2.5341.
Is it possible to use a server on Android with mobile connections after all? What are the obstacles? Maybe I just forgot to set certain app rights?
I'm creating an android app that should communicate with a PC application.
At first, I wrote the PC application as the server side of the connection (on Python),
but for some reasons I want to change it and to make the android app to the server side.
My problem is that the connection should be over the internet.
As I know, the android device (phone) is inside a private network of the cellular company,
which makes a problem to access the device over the internet.
Is there any way that the android device will be accessed directly from the internet?
Yes. IF you have access to TCP/UDP ports (they are not blocked on your private domain),
give a shot to Java Socket Programming.
Whether the server is mobile or PC is totally up to you.
If you need to learn about socket programming, the best place to start is this tutorial on official Oracle documentation website.
This is yet another learning by example tutorial.
I want to establish a socket connection between my mobile Android device and my PC, so that a string will be sent from my mobile phone to the Android application running on the PC.
See this tutorial for setting up a TCP connection, which is probably the one you're looking for, based on Java in the PC side which might be the server or the client:
Link
For more basic information about coding a client-server software you can also check this series of YouTube tutorials
I need a client server example and steps to create it on eclipse,
I am using eclipse and i have tomcat7.0 and wamp server in my PC,
I have a device (samsung mobile) that i want to use as server/client and emulator(AVD) as client / server,
How to create a server side app in eclipse? please explain with all steps,
How test / run app?
How are the client and the server going to communicate? Through Wifi/Bluetooth/Using http?The only true client server model that comes in to my mind is having let's say php pages that you are going to send HttpRequests (check this for an example) from your android application and the server will handle. In the case of bluetooth wifi you just have to open a socket and send the data. It must be noted that your pc and the emulator have different ip address range, thus in case of TCP/IP socket it is quite tricky (although I think it is possible) to establish a communication between your android phone and an Android virtual device. I hope I didn't misunderstood anything.