Able to ping the system using IP but not able to access api - api

My API is running on the Windows system. I'm calling API from another MAC system, but it's just getting a timeout.
I'm able to ping from Mac to Windows and vice versa, but API not working which is running a specific port.
Also, if I'll connect mobile Hotspots then I'm able to call API. But using WIFI router not able to connect.
Please let me know if you have any suggestions

I'm using Windows 11. After I disabled windows defender, I'm able to access API from other systems

Related

Using Sonos API even though server is not on the same internet - Sonos SOCO & WayScript

I have made a script that uses the library SOCO, to play songs on my Sonos. I have deployed this script at WayScript. The issue is that WayScript runs it's scripts on it's own server, which isn't connected to my internet.
Therefore, when I try to connect to my Sonos device: SoCo('192.168.1.10'), it can't connect... obviously.
So what do I do? Maybe Sonos provides another way to interact with their devices, even though the server is not connected to the same Wi-Fi.
Thanks in advance,
Villads
Use the Sonos Cloud API, which does not require access to your local Wifi network. https://developer.sonos.com/reference/control-api/

Can we use BLPAPI remotely?

The SDKs at https://www.bloomberg.com/professional/support/api-library/ allow you to connect to localhost 8194 to fetch data. Please correct if any of the following is incorrect:
The use of the SDK requires the installation of a Terminal software on the PC where the program using the SDK is being run.
The Terminal software creates an endpoint listening on port 8194 through which the data can be fetched.
Question:
Is it possible for another computer in the local network to run the SDK and connect to the computer that hosts the Terminal service?
Does the Terminal service license support such use wherein the data leaves the PC and gets pulled to a different PC?
Regards
No, it is not technically possible to connect to another PC which is running the Terminal and even if you can get around this it is not allowed by the license. Data downloaded on a PC running the Terminal must stay on that PC.
Bloomberg offers 2 solutions which don't require the Terminal to run and do require authentication: Server API (SAPI) and B-PIPE. To clarify, because you're describing having to run the Terminal on the PC you're necessarily talking about Desktop API.

Using Java to communicate to a USB device from browser

We have a java web application and now we have a new request: the client wants to communicate with their USB device using our application. They plug the device into their PCs, open a page of our web application and the page will communicate with the device to get some input. Communication here means reading some input from the device. This should be support on every script supported browser. Can someone give me a guide or a link that tells me how to do it? Thank you for reading.
You can use the WebUSB API to communicate with USB devices in the Web app. However, WebUSB is only implemented in Chromium.

establish communication between metro and desktop

I'm trying to make my store app communication with desktop app through websockets.
I know we can make metro app as a client and do WinRT way of communicating over.
For the desktop server part, i'm planning to write a dll that will contain server code and receive metro texts being sent over.
Can someone please tell if this is possible and how to write server code in a dll and if so should we be using winhttp for wbesockets in server side ?
Windows Store (WInRT) apps are executing in a sandbox which isolates them from network communication with other applications on the local machine (localhost). That being said, this protection can be disabled using CheckNetIsolation.exe. Visual Studio automatically does the same for debugging purposes, allowing you to call e.g. a web service on your local machine during development.
As for the desktop side; to communicate with web sockets client, you can make advantage of WinHTTP. There's a working example on MSDN.
Keep in mind, though, that any application communicating with localhost will not be certified for Windows Store and will require several additional steps to install it:
The Windows Store application package will need to be sideloaded since it won't be published in Windows Store.
Any desktop component it communicates with will need to be installed separately the same way as any other desktop application.
Using CheckNetIsolation.exe loopback exemption will need to be added for the Windows Store app.
If you can avoid it, I definitely suggest you don't try communicating directly with a desktop application from you Windows Store app.

How can I debug Windows Phone 8 App on Remote Server?

Our Projects(Code/Design,etc) in remote server,They have develop windows phone scenario,such as : visual studio 2012/2013,windows phone sdk installed etc..
i know debug app must be in vs2012/2013,
but,if i want to debug app on remote server and how can connect device ?
ps:
1、Use the same network.
2、All code in the remote server.
If you want to do it programmaticaly:
Microsoft has managed APIs that allow you to install and run XAPs on either hardware device or simulator. They are implemented in 3 DLLs: Microsoft.Smartdevice.Connectivity.dll, Microsoft.Smartdevice.Connectivity.Interface.dll and Microsoft.Smartdevice.MultiTargeting.Connectivity.dll - you should be able to google usage examples.
Unfortunately, there's no APIs for remote debugging.
If you want to do it manually:
You can use remote desktop + RemoteFX USB Redirection.
Or you can use specialized hardware, such as "Conversions Technology USB Extender Over IP" or "StarTech USB1000IP".