Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6329959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:46:30+00:00 2026-05-24T17:46:30+00:00

I have a call center application running using php/javascript. When the operator is in

  • 0

I have a call center application running using php/javascript. When the operator is in his mac or windows or linux with web browser such as Firefox/Chrome/Opera/Internet explorer. I need to make a real time connection to a remote server for sending a command like “make call”.

But how can i do using javascript a telnet connection to remote server? Is this possible with javascript if so how and which browsers?

Thanks

Note: without using this

1) http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/

2) http://stephengware.com/proj/javasocketbridge/

Follow up: Only i capture this packets while using Chrome? (Firefox/Opera/Midori/Safari, none worked).

# tcpdump -n -x -X -i any port 23
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes

16:37:00.446070 IP 1.164.45.143.56295 > 1.164.45.143.telnet: Flags [S], seq 205310205, win 32792, options [mss 16396,sackOK,TS val 37248521 ecr 0,nop,wscale 6], length 0
    0x0000:  4500 003c 96f4 4000 4006 a561 51a4 2d8f  E..<..@.@..aQ.-.
    0x0010:  51a4 2d8f dbe7 0017 0c3c c8fd 0000 0000  Q.-......<......
    0x0020:  a002 8018 fe94 0000 0204 400c 0402 080a  ..........@.....
    0x0030:  0238 5e09 0000 0000 0103 0306            .8^.........
16:37:00.446109 IP 1.164.45.143.telnet > 1.164.45.143.56295: Flags [R.], seq 0, ack 205310206, win 0, length 0
    0x0000:  4500 0028 0000 4000 4006 3c6a 51a4 2d8f  E..(..@.@.<jQ.-.
    0x0010:  51a4 2d8f 0017 dbe7 0000 0000 0c3c c8fe  Q.-..........<..
    0x0020:  5014 0000 0031 0000                      P....1..
16:37:00.446555 IP 1.164.45.143.56296 > 1.164.45.143.telnet: Flags [S], seq 196642802, win 32792, options [mss 16396,sackOK,TS val 37248521 ecr 0,nop,wscale 6], length 0
    0x0000:  4500 003c d9fb 4000 4006 625a 51a4 2d8f  E..<..@.@.bZQ.-.
    0x0010:  51a4 2d8f dbe8 0017 0bb8 87f2 0000 0000  Q.-.............
    0x0020:  a002 8018 fe94 0000 0204 400c 0402 080a  ..........@.....
    0x0030:  0238 5e09 0000 0000 0103 0306            .8^.........
16:37:00.446581 IP 1.164.45.143.telnet > 1.164.45.143.56296: Flags [R.], seq 0, ack 196642803, win 0, length 0
    0x0000:  4500 0028 0000 4000 4006 3c6a 51a4 2d8f  E..(..@.@.<jQ.-.
    0x0010:  51a4 2d8f 0017 dbe8 0000 0000 0bb8 87f3  Q.-.............
    0x0020:  5014 0000 41bf 0000                      P...A...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:46:31+00:00Added an answer on May 24, 2026 at 5:46 pm

    Best you can do with javascript is an AJAX request using the XMLHttpRequest. If your telnet server can handle a bunch of garbage commands before it gets to the good one then you’ll have no problem. The AJAX request can connect to the telnet server and send plain text commands using the POST mechanism. The telnet server will receive the HTTP header first which it will ignore with “invalid command” errors before it gets to your valid telnet commands in the POST body.

    var xtel = new XMLHttpRequest();
    // replace 123.123.123.123 with the correct IP address
    xtel.open("POST", "http://123.123.123.123:23", true);
    // you won't be able to get a proper response from the telnet server 
    xtel.onreadystatechange = function () {return true;} 
    xtel.send("valid command 1" + "\n" + "valid command 2" + "\n");
    

    This would be akin to …

    <> telnet 123.123.123.123 23
    <> GET / HTTP/1.1
    <> ACCEPT: */*
    <> HOST: 123.123.123.123
    <>
    <> valid command 1
    <> valid command 2
    

    However, the above is a kludge and your best bet would be to use PHPs sockets http://php.net/manual/en/function.stream-socket-client.php to perform the connect and send the command(s).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been supporting a web application at work for our Call Center unit
I have a JavaScript function, pop_item . I have to call this from PHP,
I have a Call center application. Where users are online. And when a service
Here's my problem: I have to call a web service with a secure header
I want to write some javascript and have it call into the DOM for
I have an API call in my application where I am checking the time
I've been using WWF for a while as part of an internal call center
I have a requirement that we need to make a telephone call using ASP.NET
We have this API to our ordering system in our Call-Center, that our online-ordering
I have a program that a call center uses to guide phone agents through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.