how to establish locally hosted Docker API server with SocketXP forwarding Webhooks

  docker, tcp, tunnel, webhooks

I have a locally running SQL server in a docker container. I have set up the following socketXP container using the attached config file. when I ping the socketXP route nothing happens? am I missing something here? I have also attached the console which shows which ports are being listened on. I think the port assignments in my setup may be incorrect. I have attached config file and images of the server console and teh socketXP dash for reference

docker commands in setting up (Powershell):

Set up your socketXP connection


docker pull expresssocket/socketxp


Using default tag: latest latest: Pulling from expresssocket/socketxp Digest: sha256:0f8755d521f80dca596228d6145e84828b6983eaee370f3f714deac41a0ce7b6 Status: Image is up to date for expresssocket/socketxp:latest

Create a config.json file in your local directory and map it as a volume inside the container at /data directory as shown in the example below.


    "authtoken": "Emitted",
    "tunnel_enabled": true,
    "tunnels" : [{
        "destination": "",
        "protocol": "http",
        "custom_domain": ""
    "relay_enabled": true,
    "relays": [{
    "destination": "http://localhost:5002"

Create the socketXP container


docker run --name SocketXPWebHookRelay --restart unless-stopped -d  -v C:DockerConfigsSocketXp:/data expresssocket/socketxp:latest

Outputs the new container docker tag assigned to your container ^^^



Login to your socketXP account with the container in docker


docker logs fc


Error: "socketxp login" requires at least 1 argument. See 'socketxp login --help'. Usage:  socketxp login [token] [flags] Login to the SocketXP service.  Obtain an auth token from Using config file: /data/config.json Login Succeeded. User [Mitchell Storrie] Email [Emitted]. Connected. Public URL -> Emitted Connected. Public URL -> Emitted

Everything up to here seems to run fine. the public URL is now showing on my socketXP dash. the reroute is showing correctly also which you can see in the image below.

SocketXP Dash

Yet when I pass webhooks or API commands to the server they don’t seem to be getting through. the image below shows the console of the server running after startup. NOTE that the listening port in the console is different to that assigned by docker. I believe this may be the issue but not sure why. Will test and relay any progress.

SQL Server Console Image

Thankyou for your time and I hope this helps others facing similar issues or just getting started.


Source: Docker Questions