0

I am trying to send a file from Android emulator on Windows to ubuntu. https://www.rgagnon.com/javadetails/java-0542.html https://www.youtube.com/watch?v=7QNJvxXCYOY How do I use the Simple HTTP client in Android?

These all helped me learn how to send a file through socket, but I am not sure which IP address to use. I set up ServerSocket and Socket, but the code won't proceed at socket = ServerSocket.accept()

I wonder if this is because I am not using the correct IP address. I appreciate any help. Thanks in advance.

lollip0o0p
  • 105
  • 1
  • 1
  • 7

1 Answers1

0

I am trying to send a file from Android emulator on Windows to ubuntu.

So you're running an emulator on Windows and want to send a file from the emulator to another machine running Ubuntu? Then there is no way for us to answer this question exactly, as IP addresses depend on your personal network setup. I would suggest first moving the file form emulator -> Windows, then you can send it like any other file between your machines (you can use scp from Ubuntu, or a service like DropBox, etc.)

You can also probably run ifconfig on your Ubuntu side to obtain your destination IP.

EntangledLoops
  • 1,951
  • 1
  • 23
  • 36