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 9175965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:00:19+00:00 2026-06-17T17:00:19+00:00

I am trying to stream an byte buffer through socket connection. Its not making

  • 0

I am trying to stream an byte buffer through socket connection.

Its not making connection with the server.I have added Internet & ACCESS_NETWORK_STATE permission to manifest file.

Here is my socket code :

int port = 80;

System.out.println("Connecting to " + ServerUrl.url_audio_call + " on port " + port);
Socket client = new Socket("http://192.168.1.1/call", port);
System.out.println("Just connected to " + client.getRemoteSocketAddress()); 
OutputStream outToServer = client.getOutputStream();
DataOutputStream out = new DataOutputStream(outToServer);
out.write(bData);

LogCat error :

01-22 12:07:03.990: I/System.out(14688): Connecting to http://192.168.1.1/call on port 80
01-22 12:07:03.990: W/System.err(14688): java.net.UnknownHostException: Unable to resolve host "http://192.168.1.1/call": No address associated with hostname
01-22 12:07:03.990: W/System.err(14688):    at java.net.InetAddress.lookupHostByName(InetAddress.java:400)
01-22 12:07:03.999: W/System.err(14688):    at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)
01-22 12:07:03.999: W/System.err(14688):    at java.net.InetAddress.getAllByName(InetAddress.java:220)
01-22 12:07:03.999: W/System.err(14688):    at java.net.Socket.tryAllAddresses(Socket.java:108)
01-22 12:07:03.999: W/System.err(14688):    at java.net.Socket.<init>(Socket.java:177)
01-22 12:07:03.999: W/System.err(14688):    at java.net.Socket.<init>(Socket.java:149)
01-22 12:07:03.999: W/System.err(14688):    at com.audio_demo.Audio_Call.sendRec(Audio_Call.java:447)
01-22 12:07:03.999: W/System.err(14688):    at com.audio_demo.Audio_Call.access$0(Audio_Call.java:383)
01-22 12:07:03.999: W/System.err(14688):    at com.audio_demo.Audio_Call$2.run(Audio_Call.java:374)
01-22 12:07:03.999: W/System.err(14688):    at java.lang.Thread.run(Thread.java:856)

Where I am going wrong?

  • 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-06-17T17:00:20+00:00Added an answer on June 17, 2026 at 5:00 pm

    “http://192.168.1.1/call” is an URL, “192.168.1.1” is an IP. so you are passing wrong argument, the program cannot understand…

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

Sidebar

Related Questions

I am trying to convert an object to byte array & send it through
I'm trying to stream video to a server from another machine using Java and
I am trying to play continuous stream using android mediaplayer.but am not able to
I have a UDP server that I have being trying to send structures using
Trying to read data from a TcpClient buffer into a byte array: private byte[]
I am trying to retrieve the byte that transferred by the server that has
Just to clarify something first. I am not trying to convert a byte array
I have code where I am trying to grow the byte array while receiving
I am trying to upload a folder (and its content) through FTP but when
I'm trying to inflate a gzipped byte buffer on an iOS 5.0. I am

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.