{"id":21283312,"url":"https://github.com/cgsamp/tcp-server-test","last_synced_at":"2025-09-03T15:34:54.074Z","repository":{"id":242419013,"uuid":"808750772","full_name":"cgsamp/tcp-server-test","owner":"cgsamp","description":"Small app to test a use case of the CF TCP Router for a customer problem","archived":false,"fork":false,"pushed_at":"2024-06-04T17:44:52.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-31T23:00:12.315Z","etag":null,"topics":["cloudfoundry","maven","spring-boot","tcp-server"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cgsamp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-31T18:29:09.000Z","updated_at":"2024-10-16T18:40:27.000Z","dependencies_parsed_at":"2024-06-02T22:33:00.488Z","dependency_job_id":"613e71e8-1d2e-4bfd-9684-9d8b50c8e148","html_url":"https://github.com/cgsamp/tcp-server-test","commit_stats":null,"previous_names":["cgsamp/tcp-server-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cgsamp/tcp-server-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgsamp%2Ftcp-server-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgsamp%2Ftcp-server-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgsamp%2Ftcp-server-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgsamp%2Ftcp-server-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cgsamp","download_url":"https://codeload.github.com/cgsamp/tcp-server-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgsamp%2Ftcp-server-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273466647,"owners_count":25111001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudfoundry","maven","spring-boot","tcp-server"],"created_at":"2024-11-21T11:07:50.145Z","updated_at":"2025-09-03T15:34:53.991Z","avatar_url":"https://github.com/cgsamp.png","language":"Java","readme":"# TCP Router testing\n\nBuilding an app to deploy to Cloud Foundry that listens to a certain port and reads the input. In a couple versions.\n\n## TCP Routing on CF\n\n\n### Enabling TCP Routing\n\nhttps://docs.cloudfoundry.org/adminguide/enabling-tcp-routing.html\n\nIn TAS, check the appropriate boxes in OpsMan. Optionally, increase the allowable port range to include 48556.\n\n### Adjust router groups\n\nCF TCP Routing by default delivers TCP traffic from any source to port 8080. This can be changed.\n\nhttps://docs.cloudfoundry.org/devguide/custom-ports.html\n\n`cf curl /routing/v1/router_groups/0d3d58c3-9f3f-4e3b-4df0-8cecc1c5a37a -d @update_router_group.json -X PUT`\n\n ## Running Locally\n\nStart with \n`mvn clean spring:boot run`\nthen\n`nc localhost 8080 \u003c testfile.bin`\n\n### Log example\n\n```\n2024-05-31T14:16:05.014-04:00  INFO 86021 --- [           main] tcproutes.lab.sampsoftware.net.App       : Started App in 0.683 seconds (process running for 1.011)\n2024-05-31T14:16:05.016-04:00  INFO 86021 --- [           main] tcproutes.lab.sampsoftware.net.App       : Starting APP\n2024-05-31T14:16:05.035-04:00  INFO 86021 --- [           main] tcproutes.lab.sampsoftware.net.App       : Listening at 0.0.0.0 on port 8080\n2024-05-31T14:16:06.949-04:00  INFO 86021 --- [           main] tcproutes.lab.sampsoftware.net.App       : Received connection from /192.168.1.14:56192\n2024-05-31T14:16:06.949-04:00  INFO 86021 --- [           main] tcproutes.lab.sampsoftware.net.App       : Listening at 0.0.0.0 on port 8080\n2024-05-31T14:16:37.570-04:00  INFO 86021 --- [           main] tcproutes.lab.sampsoftware.net.App       : Received connection from /[0:0:0:0:0:0:0:1]:51958\n2024-05-31T14:16:37.570-04:00  INFO 86021 --- [           main] tcproutes.lab.sampsoftware.net.App       : Listening at 0.0.0.0 on port 8080\n2024-05-31T14:16:37.570-04:00  INFO 86021 --- [pool-2-thread-3] tcproutes.lab.sampsoftware.net.App       : bytesRead=9\n2024-05-31T14:16:37.571-04:00  INFO 86021 --- [pool-2-thread-3] tcproutes.lab.sampsoftware.net.App       : TThe incoming request is:[0x00 0x00]\n2024-05-31T14:16:56.456-04:00  INFO 86021 --- [           main] tcproutes.lab.sampsoftware.net.App       : Listening at 0.0.0.0 on port 8080\n```\n\n## Deploying to CF\n\n### Create Domain\n\n`cf create-shared-domain test.tcp.tas.lab.sampsoftware.net --router-group default-tcp`\n\nEnsure that the router group is updated to use the ports required if using custom ports. By default, Diego will deliver traffic from any TCP Router port to port 8080 on the container.\n\n### CF Push\n\n```\nmvn clean package \u0026\u0026 cf push\ncf logs very-simple-tcp-server\ncf routes\nnc [IP of TCP Router] 30000 \u003c testfile.bin\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgsamp%2Ftcp-server-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcgsamp%2Ftcp-server-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgsamp%2Ftcp-server-test/lists"}