Trying to find the IP address of my Zebra LP2844-Z USB connected printer.
Need to print from my android APP using labelworks SDK.
I need the IP and Port for my printer.
What is the best way to get this?
Thanks
If your model comes with ethernet connection:
On the back of the printer, next to the ethernet connection there should be a small button. Press this and the printer gives you a label shoving existing network configuration.
When you have the ip you can access settings in web gui using this IP as address.
Else if your model is using USB only:
You would have to set up the printer on a PC (or other usb printer hosting capable device) and share the printer on the network. Then the printer ip, or address on the network is \\computername/ip\printername/port
You can use the Zebra Setup Utility (https://www.zebra.com/us/en/support-downloads/desktop/lp-2844-z.html). Use the Open Communications With Printer option to send the command:
! U1 getvar "ip.addr"
Make sure you end the command with an Enter (CRLF) or the printer will not respond.
The IP address should be displayed in the results window, below the command window.
As Russel suggests, ust the Zebra Setup Utility to "Open Communications with Printer". Type:
~WC
The printer will print a network configuration label with it's IP address and other network information. The default port is 9100.
The printer is too old a model to support the command Russel suggested although it works on most newer Zebra printers.
Related
I am trying to use more than one Huawei E303 modem on the same computer.
However, it appears that the modem starts with the default IP 192.168.1.1, so when more than one modem is inserted, they conflict.
Is there any way to change the default IP of this modem?
I thank everyone,
I apologize the question was irrelevant to others.
I did a search and some debugging on the system, on Windows when the modem is inserted, there is a | Huawei service that does the assembly of the modem and the creation of a network interface.
However this service always mounts the modem with ip 192.168.1.1, no matter how many are inserted, not offering modification option.
In summary, without modifying the service code it is not possible to define an ip for each modem.
To solve this problem I will exit Windows and create a solution with Linux using PPP connections.
Thank you
My firm produces some devices with a network interface. The devices are sent with a IP address = 0.0.0.0. The customers plugs the device on the private net in the field and, by using a tiny app written with VB6, discover it and set the correct IP address.
This working by using UDP messages: the app broadcast a "Who's there?" UDP message, read back the answer(s) containing the MAC address of the device(s), and the the user send another UDP message containing the new IP address for target MAC.
Now, for some unknown reasons, one of these device get its IP address set to 127.0.0.2. The problem is that now the VB app can't find (via UDP) the device anymore, making it impossible to change the IP address to a valid one.
Further analisys revealed than if the app is running on Windows XP it sees the device, but if the app is running on Windows 7 the UDP message does'nt arrive to to the "socket" (while Wireshark can see the answer from the device).
Now, there a solution to allow Win7 to let "pass" an UDP message sent from a 127.0.0.2 external address? If yes, we could avoid to ship around the world a replacement device with a correct IP address and all the trouble of phisically mounting it in the field.
Here's a Wireshark capture of the "question" and the "answer" not "detected" by the VB app:
cap.pcapng
Now, for some unknown reasons, one of these device get its IP address set to 127.0.0.2.
You need to fix that.
The 127/8 block is reserved for the "loopback" address (ie. localhost). No packets sent to 127.0.0.2 will leave your systems NIC. Unless there are bugs in the drives (or hardware): this could be the case with WinXP.
I'm using a macbook air with osx 10.8.4 and i want to sniff the packets in with same Wi-Fi network.
I installed the tcpdump and i can get my own machine's packages. But i can not get the packages of my iphone which is in the same wifi network.
I have done some research and find that i should use a param -I to start monitor mode. So i write a command
sudo tcpdump -In -i en0 host 192.168.1.102
192.168.1.102 is the ip of my iphone in the network. And after running the cmd, the wifi icon on my computer in the top bar add 'an eye' on it.
But unfortunately, when i surf the internet with my iphone, the tcpdump still shows nothing. Why?
If you capture in monitor mode on a protected (WEP or WPA/WPA2) network:
filters used when capturing that apply above the link layer, such as host 192.168.1.102, will not work, because the filter will be used with encrypted packets;
unless the program reading the capture can decrypt the packets, they will just show up as 802.11 Data packets, not as, for example, HTTP-over-TCP-over-IP packets.
tcpdump doesn't support decryption of encrypted 802.11 packets. Wireshark does, but, as the Wireshark "how to decrypt 802.11" page indicates, you need to supply the password for the network, you must either be using WEP or be using WPA/WPA2 Personal/Pre-Shared Key mode (WPA/WPA2 Enterprise/802.1X mode isn't supported) and, for WPA/WPA2, you must have, for any machine whose traffic is to be decrypted, the initial EAPOL handshake for the machine.
I'm trying to modify the data being printed to an Epson POS printer before it is printed. I'm currently doing this by using a print monitor instead of the Epson port in the printer port config. In the WritePort() routine for the monitor, I am writing the modified data to COM1 directly. This does send the data to the printer, but it is not doing the negotiation with the printer that is done if the Epson port is selected instead of the port monitor.
Is there a way to send the data from my monitor through the Epson port in order to get the real driver to kick in? It seems to be a monitor as well as it shows up in the list returned from EnumMonitors().
I've seen similar questions asked, but I've been unable to find the answer on any forum.
Thanks!
I need to findout the mac address of the device from which my device gets TCP requests, I ll be getting the ip address of the device by tcp endpoint but i need to find out the mac address of the device.My application will be running on both windows and linux, so please suggest me a cross platform method to find the mac address.. Any boost libraries will help me doing the same??
Firstly, you can't find the MAC address for any network interface that is not on the same local area network. That information is not transmitted beyond the router.
There is a command line tool called arp that is available on Unix and also Windows that will list IP addresses and MAC addresses of interfaces that have been in communication with your PC. i.e.
arp -a
on Windows gives something like:
Interface: 9.175.198.236 --- 0x2
Internet Address Physical Address Type
9.175.198.129 00-1b-53-46-fa-7f dynamic
and on a Unix-alike looks like:
foo.bar.com (10.27.68.72) at 00:50:56:AE:00:0B [ether] on eth0
baz.bar.com (10.27.68.77) at 00:50:56:AE:00:10 [ether] on eth0
? (10.27.68.1) at 00:50:5A:1B:44:01 [ether] on eth0
You can try invoking it and parsing the output programmatically.
arp source code is available in the below link, take the piece of code that interests you! It is c code so it should work fine.
http://www.opensource.apple.com/source/network_cmds/network_cmds-328/arp.tproj/arp.c
First thing to note is that at TCP layer, you don't know the MAC addresses.
For your case, I guess you can do two things:
use arp or write a piece of code similar to arp which looks for MAC given the IP address.
The problem with this approach is that it won't work in cases when the source is in another network.
write your server in such a way that it requests for this information from the client sending TCP request. This can be done post TCP establishment. The client should also be able to look up the machine's MAC address for the given IP.