Skip to content

Provide an exposed UDP port test case#4668

Open
KyleAure wants to merge 7 commits intotestcontainers:mainfrom
KyleAure:4667-UDP-path-broken
Open

Provide an exposed UDP port test case#4668
KyleAure wants to merge 7 commits intotestcontainers:mainfrom
KyleAure:4667-UDP-path-broken

Conversation

@KyleAure
Copy link
Copy Markdown
Contributor

@KyleAure KyleAure commented Nov 9, 2021

Fixes #4667

@KyleAure KyleAure force-pushed the 4667-UDP-path-broken branch 4 times, most recently from c1a39b3 to 6af2858 Compare November 10, 2021 15:54
@KyleAure KyleAure force-pushed the 4667-UDP-path-broken branch from 6af2858 to 17d4e66 Compare November 10, 2021 15:55
@KyleAure KyleAure changed the title Verify UDP path is broken Provide an exposed UDP port test case Nov 10, 2021
@KyleAure KyleAure requested a review from a team June 15, 2023 13:22
@nathsomdatta59
Copy link
Copy Markdown

I followed your snippet to expose a UDP port. My application is a UDP client and sending messages to the UDP port. Following your code snippet, I could expose a UDP port and mapped a local port to the docker port. But when I am trying to listen to the port, it is saying "Address already in use". I am using Junit to test. My port mapping looks like below :
2024-04-29T12:46:40.395Z INFO 680489 --- [ main] m.s.p.s.c.t.e.g.GudSimContainer : Ports mapping : {8080/tcp=[Lcom.github.dockerjava.api.model.Ports$Binding;@49f09ccf, 4991/udp=[Lcom.github.dockerjava.api.model.Ports$Binding;@541276dc}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Method of exposing UDP port changed in 1.16.0

2 participants