IntelliJ Platform has built-in server, so, you don't need (and should not) create your own.

Default port is 63342. If default port is occupied, 63342 + n will be used (n < 20). If still not possible to bind, any free port will be used.

See HttpRequestHandler, RestService, BinaryRequestHandler.