Link to home
Start Free TrialLog in
Avatar of Tom Powers
Tom Powers

asked on

HOW DO i REMOVE IP_168.112.75.11

I am developing a printserver app and on the oldest Print Server is a windows 2003 server. When you query the Print Server for desiredn values instead of a straight IP Address you get for example IP_168.112.75.11 i NEED TO LOSE THE IP_ so I can access the network printer's web interface. I Know there's a replace command but I'm just looking for a quick answer that works I know this is easy for you Experts Please in VB.NET CONTEXT.
2003 SERVER


Thanks EE you guys kick ass.
2003pRINTSERVER.png
Avatar of Radhakrishnan
Radhakrishnan
Flag of India image

Hi,

Looks it's added at the time of printer installation along with it's port. To remove this, go to the printer where it's installed, printer properties, ports. The IP will be listed here, you can untick it to remove. If this not what you looking for and looking to replace via code then I'm sorry, not my area.
Avatar of Tom Powers
Tom Powers

ASKER

Thanks Dude AI'm just looking for a VB Keyword to cut IP_ OFF SEE Picture
User generated image
hERE IS MY rEMOVE WHICH ISN'T WORKING ANY IDEAS?
Private Sub LSPrinters_DoubleClick(sender As Object, e As EventArgs) Handles LSPrinters.DoubleClick
        If tsTXTPrinter.Text = "nazps" Then
            Dim phrase As String = ""
            phrase = phrase.Replace("IP_", "")

            phrase = LSPrinters.SelectedItems.Item(0).SubItems(4).Text
        End If
        cmbPrint.Text = LSPrinters.SelectedItems.Item(0).SubItems(1).Text
        WebPrint.tswebpagePName.Text = cmbPrint.Text
        GetProcessFields()
    End Sub

Open in new window

I just need to Lose  IP_     and  replace  the  IP_  WITH nothing so I  can Navigate to  the  IP Address VIA  WebBrowser   Anyone Please.
SOLUTION
Avatar of Arana (G.P.)
Arana (G.P.)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Guys Thanks for your examples both work sorry to get back to you so late I'm giving it a 250 split Thanks again
Great examples Guys Thanks