WakeOnLan, tcp packet


 
Thread Tools Search this Thread
Operating Systems Solaris WakeOnLan, tcp packet
# 1  
Old 09-26-2014
WakeOnLan, tcp packet

I'd like to use SPARC Solaris10 to 'wake up' an old PC on same LAN.
what is the simplest way of doing it? (preferably without installing new software)

thanks.
# 2  
Old 09-26-2014
This User Gave Thanks to achenle For This Post:
# 3  
Old 09-26-2014
Firstly the PC (BIOS) motherboard must support wake on lan.

Once enable in the BIOS it should be fairly simple.

You send the sleeping system (or even powered down system if it has volts supplied) a magic packet. The magic packet can come from anywhere. I've sent a magic packet to my system at home from the office by using NAT and port forwarding on my router at home.

There are a number of magic packet generators available for download free on the internet. Obviously you need to select one that works on your O/S.
Just Google something like "magic packet generator".

Does that help? Or am I telling you stuff that you already know?
# 4  
Old 09-26-2014
thanks. I've managed to wake it from Linux with 'etherwake'. On Solaris, I'd like to use 'telnet' or similar, to avoid installing anything. is this possible?
# 5  
Old 09-26-2014
You can't telnet to a machine that's asleep. Incidental traffic to a "wrong" machine won't work either, a modern switched network won't repeat it to anything else. Only broadcasts go to everyone.

So it pretty much has to be a connectionless broadcast -- UDP or ICMP. But ping won't let you shoehorn in the magic sequence, so that's out.

How about a perl script?

http://gsd.di.uminho.pt/jpo/software/wakeonlan/
This User Gave Thanks to Corona688 For This Post:
# 6  
Old 09-26-2014
thanks, I'll try perl. I've seen (on some forum), people use this on linux (for different purpose):
Quote:
dd ..blabla.. > /dev/tcp/$target_host/$port

cat < /dev/urandom > /dev/tcp/$target_host/$port
could something similar be used?
# 7  
Old 09-26-2014
To repeat:

1) You can't make TCP connections to a machine that's asleep.

2) You can't even aim at a machine that's asleep -- by definition, it doesn't have an IP yet.

Things like telnet, ftp, etc mostly use TCP connections, which depend on the machine being awake to respond. UDP is more like ping, where it just gets sent no matter what.

But it takes a very specific kind of UDP packet to reach a sleeping machine: A broadcast UDP packet. It has to be a broadcast because, without an IP, you have no way to "aim" the packet at anyone. I don't think writing to the broadcast address is enough these days, it has to be sent with the special BROADCAST flag. So that rules out /dev/udp tricks as well. Lots of shells don't even have /dev/udp -- despite the name, there is no /dev/udp, that's a shell extension in a few specific versions of KSH and BASH.

Furthermore, a magic packet is going to be difficult to craft in a shell. Shells aren't equipped to deal with binary data. You'd have to worry about which version of what shell everyone has to have any hope -- it wouldn't be portable.

Too bad there's not a well-known scripting language which supports networking, binary strings, and is installed everywhere you go -- like perl...

Last edited by Corona688; 09-26-2014 at 02:24 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

I have problem with oracle solaris 10 running on oracle sparc T4-2 server. Os information: 5.10 Generic_150400-03 sun4v sparc sun4v Output from tcpstat.d script TCP bytes: out outRetrans in inDup inUnorder 6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies

2. AIX

Packet loss coming with big packet size ping

(5 Replies)
Discussion started by: Vishal_dba
5 Replies

3. Homework & Coursework Questions

filter packet

Exercise: Protection of WEB and DNS servers using the context-free rules for packet filtering: - Protect your WEB-server, so that would be for him can be accessed by browsers, and could go to dns. - Protect your primary DNS-server so that it could be to contact clients and secondary servers.... (1 Reply)
Discussion started by: numeracy
1 Replies

4. Cybersecurity

filter packet

Exercise: Protection of WEB and DNS servers using the context-free rules for packet filtering: - Protect your WEB-server, so that would be for him can be accessed by browsers, and could go to dns. - Protect your primary DNS-server so that it could be to contact clients and secondary servers.... (1 Reply)
Discussion started by: numeracy
1 Replies

5. IP Networking

TCP Packet size

Hi! I'm writing an application (using BSD sockets on a Linux host) which communicates over TCP/IP with an embedded device. This embedded device has an old and real slow integrated circuit (Epson S1S6000) which handles all of the TCP/IP communication for it. Problem is, this circuit (S1S6000)... (7 Replies)
Discussion started by: olle
7 Replies

6. IP Networking

Packet decoding

Hi, wondering if anyone can suggest a tool to me that will let me either cut & paste hex or type it in for packet decoding. I want to be able to decode a packet as done with tcpdump or wireshark, but I want to be able to manually input the hex myself. (2 Replies)
Discussion started by: Breakology
2 Replies

7. Programming

packet capture

can anyone tell me how can i capture the packets. i have tried ethernet software to capture them but its not doing what i want it to do it (1 Reply)
Discussion started by: dazdseg
1 Replies

8. Programming

Changing source port number of a TCP client packet

Hi all, I need to change the source port number of an outgoing TCP packet. First I have to bind the socket to a particular port(suppose 9001) but when I send the TCP packet I want to change the source port number lets say to 9002 still letting the socket to be bound to the same old port (9001).... (0 Replies)
Discussion started by: anuragrai134
0 Replies

9. IP Networking

TCP packet with RST flag not carrying DSCP

Hello, I'm having an issue with TCP sockets. When the TCP connection is terminated on one end, TCP packet with RST flag set is being sent to the sender. All the packets sent so far were carrying the DSCP 'AF21' set by me. But packet with RST flag is carrying DSCP '0'. Is this expected or... (0 Replies)
Discussion started by: Solace
0 Replies

10. IP Networking

Seeing IP packet

Hi, Is there any way that i can directly take out the IP packet and see its contents. Waiting for your answer .............. Bye (4 Replies)
Discussion started by: manjunath
4 Replies
Login or Register to Ask a Question