Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 567 Bytes

tcp_socket.md

File metadata and controls

32 lines (18 loc) · 567 Bytes

TCP Socket

Checks if a specified IP/hostname and port are listening for connections (TCP)

  • URL

    /tcp_socket

  • Method:

    POST

  • URL Params

    None

  • Data Params

    {'ip': '[ip/hostname]', 'port': '[port]'}

  • TCP Port Listing Response:

    • Content: { 'status': 'online' }
  • TCP Port Not Listing Response:

    • Content: { 'status': 'offline' }
  • Error Response:

    • Content: { 'status': 'error' }
    • Invalid IPv4 address / hostname or invalid port number