Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I want to make an application to simulate a Zebra printer, namely an application server, which takes data sent from SAP were to be sent to the printer.

IP printer is 10.238.115.xx
net under 255.255.255.0
Gateway: 10.238.115.xxx

I tried :
    TcpListener server = new TcpListener (IPAddress.Parse ("10.238.115.xx"), 9100);
but when I try to start my server marker error appears, and tells me that IP is invalid, but if you connect the printer and then give 10.238.115.xx ping is ok

What I have tried:

TcpListener server = new TcpListener (IPAddress.Parse ("10.238.115.xx"), 9100);
but
Posted
Updated 1-Aug-16 0:15am

1 solution

You cannot use 'xx' as part of the address, see IPAddress.Parse Method (String) (System.Net)[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900