How can I send an auto connect feature packet in OS X?

1

I am trying to configure auto connect feature on my router. It auto connects on a trigger packet. I need to provide the information of trigger packet. I need source port, destination port and protocol (TCP/UDP/ICMP) Or I could just specify a protocol. I am not sure what am I supposed to enter, so, let's not consider this.

What would be the best way to solve the problem of this trigger?

I am on OS X.

SurenNihalani

Posted 2012-08-10T02:59:15.950

Reputation: 599

Why not just ping the router? – sawdust – 2012-08-10T03:21:12.690

What's the source port number and destination port? – SurenNihalani – 2012-08-10T07:25:36.570

Answers

1

Why not just ping the router?

ping uses ICMP, which does not need TCP or UDP since they are higher layers in the Internet protocol suite. Hence no port numbers, which are a TCP & UDP concept. (When you ask about ports, you are actually referring to TCP/UDP ports. An Ethernet port would probably refer to an RJ-45 jack. An IP port seems to be an undefined entity.)

See How does Ping Really Work?

There are three commonly encountered types of sockets: stream, datagram, and raw. TCP uses the stream type and UDP uses the datagram type. Raw sockets are used by any application that needs to interact directly with IP, bypassing TCP and UDP in doing so. Customers include routing protocol implementations like routed and gated (that implement RIP and OSPF). It also includes our friend ping.

sawdust

Posted 2012-08-10T02:59:15.950

Reputation: 14 697

2

Netcat can send a packet to any arbitrary TCP or UDP port.

Ignacio Vazquez-Abrams

Posted 2012-08-10T02:59:15.950

Reputation: 100 516