Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6173337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:33:16+00:00 2026-05-23T23:33:16+00:00

Using an available WiFi IP (i.e. 192.xxx.x.x, using post 8080), I’d like to create

  • 0

Using an available WiFi IP (i.e. 192.xxx.x.x, using post 8080), I’d like to create a http server in android that can connect and can be accessed by a desktop so that I can transfer files to the android device.

Update:
I’m currently trying out NanoHTTPD but I can’t seem to make the sample HelloWorld run on android device..

I changed the hello world code and made it extend activity instead and created an object nanohttpd.

I modified up to specifying what port to be used but upon further debugging, I found out that the server socket has no getInetAddress at all. I thought NanoHTTPD no longer needs further config…?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:33:17+00:00Added an answer on May 23, 2026 at 11:33 pm

    Heh, as it turns out, NanoHTTPD does the trick but I made some adjustments…

    1. Check if the device is connected.

      I used samples from manage wifi and wifi network management to create a WiFi Manager that detects all available WiFi, returns list of ScanResults, connected Scan Result and fetched the IP address.

    2. Made the NanoHttpd as a class with singleton instance.

      From the resulting connected ScanResult of WiFi Manager, I got the IP Address and passed it and a port number to the nanohttpd instance.

      NanoHttpd nanoInstance = new Nanohttpd();
      String[] args = null;
      args[0] = the ip address;
      args1 = 8080; // or 8081.. etc
      nanoInstance.main(args);

    3. After that I finally reached the response page. =]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I detect all WiFi networks availables using Delphi? (source: filebuzz.com )
****Update:** using the Rank() over partition syntax available in MS SQL Server 2005 does
I'm using this Jquery function for available username check. How can I fire this
I'm using the new CompositeScript feature that's available in the ASP.NET 3.5 SP1 for
Using Amazon's own client libraries (or alternatives ), you can get listings of available
I have to connect my app with server using either wifi (if it is
Using Android TelephonyManager an application can obtain the state of data activity over the
I'm trying to scan available wifi network through my Android device. Here's the chunk
I am using something like this to share some text using available applications on
I have an android app which connects to a server using a socket connection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.