[Q] Hotspot force redirect to Local Server - Android Q&A, Help & Troubleshooting

I got this crazy idea that I don't know is possible or not... what I want to do is set up my phone as wifi access point, then allow people to connect to it, but handle all incoming http traffic myself.
So:
Create a server (with KWS - Android web server)
client can connect to the phone
when client tries to open an http connection to any random server, this has to be intercepted by my app and handled by a local web server
Anyone knows any android app to do this ?

What you are talking about is a captive portal.
I made a simple app for this purpose. If you are a developer, I need your help to improve the app. For downloading the app and source code check this thread https://forum.xda-developers.com/android/general/guide-setup-fake-captive-portal-android-t4011689

Related

[Q] Share file via ftp with direct link/qrcode

Anyone know a ftp server or any other protocol, that you can share a direct link to the file? Awesome if they already generate the qrcode. If not it's ok too.
I know that can be made manually: I start the server, browse in my own files through ftp, grab the link, make a qrcode to this link and them show to the other android. A very long history.
The perfect history is: 'share to' > that-app-Im-searching (they start the ftp server and generate the qrcode) > show the code to the other Android. After the transfer I can manually stop the ftp server or they auto disable when the connection is closed.
My idea is use WiFi (tether or direct) to *push/beam* files to the other phone, like Bluetooth, but faster, without NFC enabled phones or proprietary WiFi share app from Samsung, that not work/have in mostly other phones.
Sent from my Galaxy Nexus using xda-developers app

[Q] Servers Ultimate APP questions

Some of you may already know about this app which lets you turn your Android device into one of many different types of servers. I am very interested in this, but am not sure of which type of server I should be using.
Could someone knowledgeable give a brief description of what each type of server would be used for?
I am personally wanting to run this on my HTC EVO 4G at home so that I can access things at any time from any computer. I am not sure which server that would be though.
It runs:
DLNA
DNS
Dynamic DNS updater
Email Server
FTP server
IRC Server
Proxy Server
SMS Gateway
Socks Server
SSH Server
Telnet Server
Test Server
Time Server
Web Server
WebDAV Server
Thanks for the info.

[Q] Android p2p file transfer with Google Cloud Messaging push notification

I have an issue which I can't even start to solve after hours of researching. I need to use GCM to facilitate peer to peer file transfer (JPEG image of circa 1.5 megabytes in file size to be specific).
Client A opens a socket and uses AirBOP to notify client B that it wants to send a picture and gives B relevant information (IP address + port to use, ephemeral I guess). B then connects to A and downloads the picture. All this behind NAT and via 3G/4G if at all possible. No server involved.
I looked into TTorrent, Snark, Cling, NAT hole punching, PWnat etc. but I still don't know how to achieve the above, and if it is possible at all..
This is a developer question but I'm restricted to General. I'm looking for a road map/guide lines/library/existing tutorials/projects on solving the above problem.
Thank you.

NoRoot Firewall

Disclaimer: I know nothing on how to configure firewalls except for adding apps to the whitelist/blacklist.
Tried using NRFW and I noticed a few things:
1. I've consumed 12.54GB and 9.77GB was by NRFW. What's happening please.
2. I've tagged some apps that can only connect when I'm on wifi, yet I'm still getting notifications when I'm on mobile data. For example, the Facebook app and some games.
3. How do I determine which IP address should be allowed or blocked? For example, I see IP addresses pointing to Akamai and my ISP.
4. Is it a good idea to turn off background data? I restricted it on mobile data and allowed it when on wifi but some apps would not load properly even when I'm connected to a wifi network.
Thanks in advance! And please excuse me if I posted this in the wrong forum.
EDIT: I'm referring to Grey Shirt's NoRoot Firewall.
I read up a bit and learned that 1e100.net are Google's servers. I understand that these point to ads too. I also noticed my ISP's name shows up under these.
Do I allow these or do I block them?
First of all: sorry for answering so late ;-) ...:
- in my opinion, your traffic from internet is being redirected through this NoRoot Personal Firewall unto your smartphone
- so, the 9.77GB you mentioned were 'routed/directed' through the NRPFW - the rest was not (? - maybe for Android-Updates or anything?)
- as you could most probably see, all of these 9.77GB were allowed to pass through from the internet servers (akamai or google or microsoft or ibm or yahoo or many more..) to your smartphone ('s apps / system apps)
- notifications about your mobile connection(s) MAY simply be wrong (as i found out) - seemingly a bug in the NRPFW-app (?)
- akamai is one of the " intermediate servers" or main server for a couple of websites:
for example, when you open the 'WashingtonPost'-website on your smartphone, (all) contents from their website are upon an akamai-server, because 'WashingtonPost' does not have a server on its own inside their office building maybe big enough to handle all traffic from their website to all readers in the world
- your Internet Service Provider has intermediate servers for (any) web content, too - so, you might want to allow their internet addresses
- furthermore, background data is transferred when you have an email-app and this app (gmail or yahoo-app, e.g.) is transferring data even if you had closed the email-app (so you cannot see it anymore on your launcher) or it's even running in background and checking if there's new mail when auto-started while your smartphone is booting.

Need help with Remote Desktop Client on Android

I would like to use an android as a Windows 10 PC terminal. I'm using a Samsung Fold3 running Android 12 if it matters. It seems like a fairly simple process. Enable Remote Desktop on the Windows 10 PC. Make sure the PC's firewall (and virus protection software) passes Remote Desktop access. Install Remote Desktop Client on the Android and setup the connection to the PC.
The Remote Desktop Client sees the PC, fills in the active user account and requests the user password. I can enter the password but the android does not respond to the "Continue" button and all I can do is cancel out of it. I can also try to edit the PC configuration to setup a user account so that a password does not need to be entered each time but in this case the save button is unresponsive whether or not a password is entered.
This same thing happens whether I select the PC found on the local wifi or I enter the PC's IP address manually (with or without the 3389 port number).
Can anyone give me a clue as to what I'm doing wrong or how to proceed?
Sorry. User error. I was doing something stupid.
Never mind.
These remote desktop options allows you to access Windows from Android easily with just one click.https://www.anyviewer.com/how-to/remote-control-windows-10-from-android-0427.html
Oliviaaaa7 said:
These remote desktop options allows you to access Windows from Android easily with just one click.https://www.anyviewer.com/how-to/remote-control-windows-10-from-android-0427.html
Click to expand...
Click to collapse
Thanks for the link.
My initial problem was just a usage error getting Microsoft Remote Desktop Client to work when on the same network. I fixed that issue and am able to use it to control my PC from an android as long as I'm on the same local network which is useful but I would also like to be able to do it from anywhere on the internet.
Your link led to a discussion of this issue with the possibility of using port forwarding or a VPN to allow access to my PC from an external network with varying degrees of complexity and hacking potential.
The link also discussed using chrome and a google account to access my PC remotely. This is unacceptable because I won't use chrome and have uninstalled it from all my android devices plus although I do have a Google account, I only use it to explicitly download apps from the store and otherwise disable Google Play Services and the Google Play Store and will not use any app that requires Google Play Services to function. So this option is out.
The final option requires me to create an account at a third party site and presumably direct all of my traffic through this third party. This too is unacceptable to me.
So the question is, is there a simpler method to access my PC from an android device that's on a different network than having to setup a vpn or enabling port forwarding on my router, that doesn't require registering for and using a third party service to accomplish the goal?

Categories

Resources