Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcpecho refuses connection ... #504

Closed
kostyll opened this issue Nov 29, 2019 · 1 comment
Closed

tcpecho refuses connection ... #504

kostyll opened this issue Nov 29, 2019 · 1 comment

Comments

@kostyll
Copy link

kostyll commented Nov 29, 2019

Hello, when I'm running picoapp

./picoapp.elf --tap tap0:192.168.5.4:255.255.255.0 --app tcpecho:192.168.5.4:6669:6669:1400  --app tcpclient:192.168.5.4:6669

or

./picoapp.elf --tap tap0:192.168.5.4:255.255.255.0 --app tcpecho:192.168.5.4:6669  --app tcpclient:192.168.5.4:6669

I get the next error:
No such port 6669
Socket not found...

$ ./picoapp.elf --tap tap0:192.168.5.4:255.255.255.0 --app tcpecho:192.168.5.4:6669  --app tcpclient:192.168.5.4:6669
My macaddr base is: e4 33
My macaddr is: 00 00 e4 33 0b 00
Protocol ethernet registered (layer: 2).
Protocol 6lowpan registered (layer: 2).
Protocol 6lowpan_ll registered (layer: 2).
Protocol ipv4 registered (layer: 3).
Protocol ipv6 registered (layer: 3).
Protocol icmp4 registered (layer: 4).
Protocol icmp6 registered (layer: 4).
Protocol igmp registered (layer: 4).
Protocol udp registered (layer: 4).
Protocol tcp registered (layer: 4).
dup'ing tap0
dup'ing 192.168.5.4
dup'ing 255.255.255.0
Device tap0 created.
Assigned ipv4 192.168.5.4 to device tap0
+++ OPTARG tcpecho:192.168.5.4:6669
dup'ing tcpecho
+++ NAME: tcpecho ARGS: 192.168.5.4:6669
dup'ing 192.168.5.4
setsockopt: Nagle algorithm disabled.
Launching PicoTCP echo server
+++ OPTARG tcpclient:192.168.5.4:6669
dup'ing tcpclient
+++ NAME: tcpclient ARGS: 192.168.5.4:6669
dup'ing 192.168.5.4
dup'ing 6669
Buffer1 (0x7fdc8c584010)
Connecting to: 192.168.5.4:6669
setsockopt: Nagle algorithm disabled.
main: launching PicoTCP loop
No such port 6669
Socket not found... 
Socket error received: Connection refused. Bailing out.
$

But if I use udpecho - It works also with netcat
Any ideas ?

@kostyll kostyll closed this as completed Dec 3, 2019
@kostyll
Copy link
Author

kostyll commented Dec 3, 2019

I've found my error - wrong args

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

No branches or pull requests

1 participant