Skip to main content
18 votes

Geolocate multiple IP addresses

It seems to be possible to get this data directly in Mathematica using entities. Here's an example: Let's get a list of IP addresses to work with: ...
Szabolcs's user avatar
  • 236k
14 votes
Accepted

Online Mathematica-based direct polling

Here is a simple implementation which does not connect to the internet and can be run locally, but has the following requirements: All computers (teacher and students) are connected to the same ...
Ben Izd's user avatar
  • 9,474
12 votes
Accepted

Geolocate multiple IP addresses

Batch mode API call, for best performance From the documentation at http://ip-api.com/docs/api:batch "Batch JSON", a batch processing with the ability to query multiple IP addresses in one HTTP ...
rhermans's user avatar
  • 36.9k
11 votes

Geolocate multiple IP addresses

Do not apply this method to long lists, where Batch mode would be more efficient and less abusive to the API provider. See this other answer. 3 API Integrated solution (One API call per IP) ...
rhermans's user avatar
  • 36.9k
9 votes

Link server WSTP API feature not receiving incoming connections

You are missing just one bit of secret sauce to get this to work. When you connect to a LinkServer link directly using WSTP/MathLink functionality, you need to use "-linkoptions 4" in the arguments to ...
Todd Gayley's user avatar
  • 4,208
9 votes

Geolocate multiple IP addresses

Maybe the most concise way is through FindGeoLocation. It's easy to use, but crushingly slow: ...
b3m2a1's user avatar
  • 47k
8 votes

Accessing the Twitter API using Mathematica 11

Update Here's a cleaner rewrite of my original: First authenticate: $so = ServiceConnect["Twitter", "New"]; Then extract: ...
b3m2a1's user avatar
  • 47k
5 votes

How to set ZeroMQ subscribe channel in Mathematica?

I think this part of the interface is broken. From some digging I found: ZeroMQLink`SocketOptions`Private`setSockOptSingle which is called by ...
b3m2a1's user avatar
  • 47k
5 votes

Link server WSTP API feature not receiving incoming connections

This is unfortunately not a solution to the main problem yet, but I spent way to much time to not share the information. I tried several different ways and finally gave up. I created a public ...
halirutan's user avatar
  • 113k
5 votes

Opening a pipe with OpenRead

Use sockets. For example, set up a listening connection in shell with nc -l 2222 Then in Mathematica ...
Daniel Genin's user avatar
4 votes
Accepted

Unable to send message outside Mathematica through Channel-Based Network

When copying a URL to external programs, make sure that you are using Edit > Copy As > Plain Text (Cmnd-Shift-C on Mac)... or otherwise remove the line ...
Igor Bakshee's user avatar
4 votes

Can anyone explain how to use Mathematica's OAuth package?

In version 11 of Mathematica, I have used this (it's almost the same as Max's answer): ...
Peter Stuifzand's user avatar
4 votes
Accepted

Using sockets to connect to a trading platform

Please try: socket = SocketConnect[{"api.binance.com", 443}] WriteString[socket, "GET /api/v1/time \n"] message = SocketReadMessage[socket] note the "\n" message ...
Hans's user avatar
  • 956
3 votes
Accepted

Generating a sensors distribution graph

Something like this maybe, using GridGraph. ...
flinty's user avatar
  • 25.6k
3 votes
Accepted

WriteString to TCP socket appears to be broken in Mathematica 12.3

I think there is a problem with your python TCP server implementation. If you check the corresponding documentation, especially the example section, you may witness that the provided TCP client code ...
Dorian B.'s user avatar
  • 381
3 votes
Accepted

SocketConnect not connecting to web socket address

Sorry for the poorly formatted answer, it has been updated. Since I am very new to web sockets, I didn't even understand the error. After some sleuthing, https://en.wikipedia.org/wiki/WebSocket, web ...
Ray Troy's user avatar
  • 1,299
3 votes

How to set ZeroMQ subscribe channel in Mathematica?

Sorry for the late response. There is indeed a problem with ZMQ option management. @b3m2a1 did a very good job at digging into the code for an answer. The expected input is a list of integer (list of ...
Dorian B.'s user avatar
  • 381
3 votes

How to set ZeroMQ subscribe channel in Mathematica?

https://www.wolfram.com/language/12/networking-and-system-operations/zeromq-publisher-model.html ...
Alexey Golyshev's user avatar
2 votes
Accepted

Can Wolfram Development Platform communicate in real time?

There is now an experimental feature to communicate in real-time in Wolfram: https://reference.wolfram.com/language/guide/Channel-BasedCommunication.html It can be used to communicate between two ...
Hristo Vrigazov's user avatar
2 votes
Accepted

Cannot submit valid form in FormFunction

As @Kuba had commented, ImportString[#, "HTTPRequest"]& does not turn POST parameters to rules. So the property "FormRules", ...
bcegkmqs23's user avatar
2 votes

Is there any way to change the port used by RemoteConnect?

With the current implementation of RemoteConnect, it seems that this is unfortunately not possible. Port 22 is hardcoded in the Wolfram Library that is used for SSH ...
Domen's user avatar
  • 27.6k
2 votes
Accepted

How to setup HTTPRequest of type multipart/mixed with boundary properly in Wolfram Language?

I suspect the issue is that there is no blank line separating the headers from the body within each of the subparts. For example: ...
WReach's user avatar
  • 69.1k
2 votes

Searching directory over a network

I found something that works and changes the search time from 94 seconds to 0.48 seconds. This is to use the RunProcess function in Mathematica. This looks like ...
jpskin's user avatar
  • 21
1 vote

URLDownload(and URLSave, Import) "Error while processing content unencoding"

This problem can still be reproduced on my Windows. But I've got a solution which is somehow magic. <<CURLLink` Evaluate this, and then this problem will ...
bcegkmqs23's user avatar
1 vote

Connect Mathematica to message broker - kafka, NATS or mosquitto

For broker that implements the MQTT protocol (mosquitto) Mathematica has undocumented package MQTTLink located in ...
fmvin's user avatar
  • 261
1 vote

Can Wolfram Development Platform communicate in real time?

You can connect to sockets with SocketConnect, but I'm not aware of a built-in way to bind a socket.
rhennigan's user avatar
  • 1,783

Only top scored, non community-wiki answers of a minimum length are eligible