I am writing an android app for a friend of mine who is a DJ. Instead of guests writing requests on a sheet of paper, he wants them to request songs through his android tablet. I have the app working through the internet but some places may not have internet. One solution was for him to bring a router and just connect the laptop to tablet that way.
My question is: how do I connect the two locally? What would the ip address for the laptop be? Where do I have to look to find it? Is there an easier way to connect the two?
I'm a pretty big networking newbie.
Thanks,
Eric
A really easy way to do this would be make a small webapp to run on the laptop, and just point the android tablet's browser to the laptop's web server. If you want a little more control on the tablet's browsing (so browser controls aren't available so people can't navigate away from the app / bring up "inappropriate" websites / etc.) create a little android app with a webview to load the webapp.
Edit: This assumes you have a router or something to create a network connection between the laptop and tablet. You could set up the router to always give the same IP address to the laptop and tablet. The specific directions for how to do this depend on the router you have - but for most you just go to the router's IP address (usually 192.168.0.1 or 192.168.1.1), login as an admin, and follow directions to set up "static" or "fixed" ip addresses for devices connecting to the network.
Depending on what other forms of communication the laptop and tablet have in common (bluetooth? IR port?) you could write an app on each computer to talk to each other without needing a router - but writing these programs is going to require writing a lot more "lower level" communication between the two apps than using HTTP.
You would have to configure the access point/router to grant a fixed IP address to the Android's MAC address and do the same for the laptop's MAC address.
Write a small web server on the tablet that refreshes the page after each new song request. Have the laptop web browser connect to the tablet's fixed IP address by visiting http://192.168.1.1, but of course replace this number with the IP address you configured. You could also reverse the roles and submit the songs via the tablet's web browser on a web server running on the laptop. And tell your client to keep a close eye on that tablet!
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).
I am a technician and travel to customers all the time. At site i need to connect to a localhost webpage located on a server somewhere in the network. I dont always have the IPadress and the premises is big. I wish there was a way to scan the network for localhost. I'm of course connected to wifi.
I have created a tool on my android device that finds the local iPadress and connects to the localhost with the most know ipadress of my customers. But sometimes not all network configuration is standard, so it can be difficult to find the last numbers in the iPadress.
So my question is: is it possible to scan a network (lan) for localhost pages?
Is it a know way or tool to do this with windows or android?
Take a look at the Fing Network Tools Android application. It's great for spidering a LAN to discover connected devices and identify them. Once the discovery is complete you can run a port/service scan for HTTP servers to find your "localhost" site.
Im currently developing a number of online applications with mobile friendly interfaces and would like to test them on my mobile device without having to upload (having problems with my internet connection)
Ive researched and seen there's a way it can be done with static IPs but since my internet connection requires an automatically assigned IP. Can this procedure also be done with a dynamic IP
My nachine and device specs are
Windows 10 64bit
Android 4.4.2
Xampp/Apache
Thanks in advance
There are two ways of achieving this
1) Server behind router
In this approach, you simply use your home/work Wi-Fi to connect to the server, hooked in to the same network. Later on, buy a domain/sub-domain and publish there.
2) Server beyond router
This will require some hacking in most cases. There are websites out there that provide dynamic DNS options. Almost all after-market router firmwares will support registering on to (many of) such websites. And then do port-forwarding to the server behind the router. In essence, you're asking for someone on the outside, to redirect traffic to (your) server, which is on the inside(behind the router).
For debugging purposes I set the IP address on my phone to 192.168.178.220 and this connects to my PC over a wireless router to access a web app I have running in IIS on my PC. The web app uses 192.168.178.201. I have to use the desktop app DnsSpeeder to act as my DNS server in order for my phone app to communicate with the web app using its domain name instead of its IP address. I need to do this because I use a subdomain that shares the same IP address with other web apps.
Normally this works but if I leave my phone untouched for a minute or so, the phone cannot resolve the domain name. I even tried a third party tool and just entered the IP address and it cannot connect to the web app. But after a few minutes the connection works fine with either just the IP address or domain name. If I use the third party tool to ping a site that is on the Internet, like google.com, there also appears to be a long delay.
My Internet connection appears to always be on and under my settings I have it set to never go off, so I can't see how it could be the WiFi radio itself.
Could the problem be with using a LAN IP address or is it something else?
Interesting! Sure sounds like something is going to sleep on the phone. Have you run a packet sniffer such as Wireshark on your PC to determine if the expected DNS requests are making it from the phone to DnsSpeeder?
I am trying to deploy and test my application on an android device which is then connected to my laptop with a usb-cable. Now, how can I target a webapp deployed on my laptop ?
knowing that my wifi is down and that I don't have the right to change router configuration to do some IP port forwarding tricks (in case you would like to suggest me to use the mobile network e.g 3G, go on internet and get back in via our router external IP address ==> which is also a little bit heavy given what we want to do here)
According to the android documentation, "the emulator" can use the ip address 10.0.2.2 to access the hosting computer but there is nothing for devices...
thanks in advance guys,