Skip to content

Pixep/coap-testserver-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CoAP Test server

This Dockerfile starts a CoAP test server (plugtest) from Californium. It will bind on CoAP default UDP port 5683.

Usage

Start the server and expose UDP port 5683. The example below uses -d option to run in detached mode and --rm to remove the container when stopped.

docker run --name coap-test-server -d --rm -p 5683:5683/udp aleravat/coap-test-server:latest

If you need to access the test server with a static IP, you can redirect traffic from a fake static IP using the -p option. Below, we redirect traffic from 172.16.177.50 to the coap-testserver.

docker run --name coap-test-server -d --rm -p 172.16.177.50:5683:5683/udp aleravat/coap-test-server:latest

You can also get the current IP address of the container from its id. Use docker ps to identify its id, and then docker inspect <id> | grep IPAddress.

Credits

Thanks to Jens Dede, whose Docker 'coap-testserver' was the base for this work.

About

Runs a Docker CoAP test server on port 5683, based on Californium plugtest server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published