Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Why not just ping the router? – sawdust Aug 10 '12 at 3:21
What's the source port number and destination port? – snihalani Aug 10 '12 at 7:25
up vote 1 down vote accepted

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.

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.