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

how to send packet over tcp with static ip #187

Open
studentisme opened this issue Aug 22, 2018 · 0 comments
Open

how to send packet over tcp with static ip #187

studentisme opened this issue Aug 22, 2018 · 0 comments

Comments

@studentisme
Copy link

I used the example---TCPClient.
my arduino is use Dynamic IP.
my pc is use static IP.
I want to make arduino send package to pc with tcp.

uint8_t mac[6] = {0x74,0x69,0x69,0x2D,0x30,0x33};
IPAddress subnet(255,255,255,0);
IPAddress dnsServerIP(140,xxx,113,1);
IPAddress gateway(203,xxx,101,253);
IPAddress ip = (192,168,0,103);
Ethernet.begin(mac,ip,dnsServerIP,gateway,subnet);

but IPAddress ip is wrong.
I don't know how to fix it.

and if I don't add any code.
example will connected 1 time.
but I couldn't do anything.
could anyone help me or teach me how to send packet with tcp stability

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