All I need to do is connect to a computer on the local network (192.168.1.40) on port 13000 and write a few bytes. And for some reason it isn't working.
"PP" would be interpreted as a command to pause/play music on the remote computer(I have the server software running fine).
AndroidManifest.XML has all appropriate permissions and no exceptions are thrown. It just doesn't connect and it is frustrating me!!! Can anyone help with the code?
Code:
public void run3()
{
new Thread(new Runnable() { public void run() {
Socket socket;
try
{
socket = new Socket("192.168.1.40", 13000);
//socket.connect();
DataOutputStream out = new DataOutputStream(socket.getOutputStream());
out.writeBytes("PP");
//PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);
//out.println("PP");
out.close();
socket.close();
}
catch (Exception e)
{
tv.setText(e.toString());
//setContentView(R.layout.main);
}
}
} ).start();
}
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have a breakpoint set in my server code so even if it made a connection(any attempt to connect) I would be notified. But nothing happens.
I fired up wireshark and it turns out I am getting the packets from my Android app. So why isn't my C# code receiving the connection? UGH... I refuse to write my server app in Java. TCP is TCP, it should register the connection
Related
Is there any software that will turn on Bluetooth when power is connected, then turn it back off again when it is disconnected? I'd love this, so that I could have Bluetooth in the car and at home, but not have it suck the battery dry the rest of the time, and I'm too lazy/forgetful to switch it myself.
It shouldn't be too hard for you to create a mortscript to do this. Search for the mortscript examples accumulation page on here if you want a few tips, or possibly someone has already made one.
Thanks for the suggestion Jez. It only took me a short while to download and install Mortscript and get it working with VJVolubilis from vijay555.com
Code:
# BluetoothOnPower.mscr
# Author [email protected]
#
# Enable Bluetooth when external power is connected, turn it off when disconnected.
# Requires VJVolubilis from vijay555.com
#
currentpowerstate = ExternalPowered()
while(1)
if(ExternalPowered() = currentpowerstate)
Else
Switch(ExternalPowered())
Case(1)
RunWait("\Program Files\vijay555\VJVolubilis\VJVolubilis.exe", "-blueon")
Case(0)
RunWait("\Program Files\vijay555\VJVolubilis\VJVolubilis.exe", "-blueoff")
EndSwitch
currentpowerstate = ExternalPowered()
EndIf
Sleep(2000)
EndWhile
This could be built into VJVolubilis if really required, but Mortscript will give greater flexibility... I'd stick with Mortscript.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
V
Intrace is a computer network diagnostic tool for displaying the route (path) and measuring transit delays of packets across an Internet Protocol (IP) network. The history of the route is recorded as the round-trip times of the packets received from each successive host (remote node) in the route (path); the sum of the mean times in each hop indicates the total time spent to establish the connection.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Intrace visualizes the process of using the map. You can see not only address through which the data packet, but also to know where they are located.
Intrace provides this service information such as:
• IP address of the server
• Host Name
• Ping (latency) to address
• Coordinates server
Download
OMG thank you for sharing this. been looking for a visual TraceRoute app for years now
ok so i tested this and i gotta say im disappointed. it doesnt work!
it loads the map and finds my location but when i type something like yahoo.com and enter a loading circle appears and nothing happens. cant even stop the scan and doesnt find anything. have to force close the app.
looking forward to update with fixes.
Hi made a wrapper for the chromatix lib to get access to all possible triggers/tables for /aec/afs.....
this wrapper works for now only with snapshot libs based on 0x301. that are devices with hal2 as far i understood it.
it will NOT! fully work with devices like nexus5/6, htc m9, lg gflex2 g4.
but the added structs can used to figure out where, as sample, the exposuretable is stored.
the wrapper is made with and for hex workshop.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
the only thing you have todo is to figure out how long your exposure table is and add the value to the wrapper else everything behind the expotable does not match
the default length from qcom has 500 entrys. lg added for the g3 540 entrys but use only 451. zte z5s use default length
Code:
typedef enum CHUNK_TYPE
{
EXPOSURE_TABLE_SIZE = 500, //default 500, lg g3 540
//DATA_CHUNK = "data",
} CHUNK_TYPE ;
Make a Backup (and store it in a save place) bevor you start changing the chromatix lib!
the hexwrapper can found there: lib_chromatix_snapshot.hsl
if you want to know what a value does look into chromatix_imx135_snapshot.h
happy modding ;D
Whenever an instance of BlueStacks is opened for the first time, it launches a Bluestacks.exe* that looks like it 'handles' all other futures instances opened:
It then launches BlueStacks.exe and HD-Player.exe for each new instance, where each of them is dependent on each other, if you close one the other is also closed.
When I have multiple instances running at the same time I can't figure out what HD-Player.exe belongs to what BlueStacks.exe, when i try to get the parent PID of any of these executables it always points to the PID of the first BlueStacks.exe* opened:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As seen in the image HD-Player points as parent the process with PID 13028 (the first Bluestacks launched), and 13028 points to the multi-instance manager who launches the processes, also If you close the first Bluestacks.exe* everything is closed.
Why do I need to know it?
Is the HD-Player who opens and uses the ports to connect with the android debug (adb).
Then when I need to use the port for a specific instance, I don't know what PID to use to listen to the port as i don't know the HD-Player responsible for it.
Would like to ask for ideas on how I could figure what Player belongs to what BlueStacks.
Hint: Add Bluestacks to this thread's title.
Sorry for bad english...
Model : A536N
ROM : Stock Android 12
I modified two files from afaneh92's kernel source like this:
first, I removed the string "kvm-arm.mode=protected" from CONFIG_CMDLINE
and modified /arch/arm64/include/asm/virt.h :
C:
static inline bool is_hyp_mode_available(void)
{
/*
* If KVM protected mode is initialized, all CPUs must have been booted
* in EL2. Avoid checking __boot_cpu_mode as CPUs now come up in EL1.
*/
if (IS_ENABLED(CONFIG_KVM) &&
static_branch_likely(&kvm_protected_mode_initialized))
return true;
/*
return (__boot_cpu_mode[0] == BOOT_CPU_MODE_EL2 &&
__boot_cpu_mode[1] == BOOT_CPU_MODE_EL2);*/
return 1;
}
After compiling and applying that kernel, kvm showed in /dev folder!
I didn't expected that those doings enable kvm!
So I attempted my Windows 11 ARM VM with KVM, but got some error...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Found you
Looking forward to this, actually got me interested,
TringQuack said:
Looking forward to this, actually got me interested,
Click to expand...
Click to collapse
Do you mind if we speak in private?