Take a moment to clear up what your question is.

If this is the usual iPhone can't connect to your router question, Apple iPhones can forget connections, I mean you use the menu in the setup of the WiFi to forget the old connection and then connect again.

If your name and password fail then on your PC/Apple login to your router to see what the router password is.

But here's where it gets murky. You asked about the name and password. So take some time to clear up what the issues are.


If you have a Windows 7 or later workstation you can use PowerShell, because Win 2003 I think it doesn't support PowerShell if it does it might be limited.

A workstation can do as long as PowerShell command line or PowerShell ISE is installed.
Of course, you need to run the PowerShell in an elevated mode ( run it with domain admin rights).

Check out link below it might give you some idea on what you're trying to achieve.

Good luck! Cheers!


You should be able to write a low-level C/C++ tool to do this that you can call from a script. You will probably need to configure your routers to keep the broadcasts inside your LAN or specific sub-nets, otherwise the world will see your casts. Some of our engineers back about 15 years ago misconfigured some TIB software to use broadcasts and it shut down our entire corporate network (too many too fast). The powers that be were not happy! I had to clean up their mess!


I have a local domain server, managed via a Windows Server 2003 R2 SE machine, and would like to be able to broadcast messages as an administrator to all client PCs which are connected to the domain, whereby the message will just pop-up on the users' screens, and either an OK button appearing or it automatically times out. e.g. 60 seconds, and closes by itself.

However, in doing so, no additional software should be installed on the client PCs to receive the broadcast, as the internal policy is to strictly prevent "chat-communication" between users using third-party software.

Any way of going ahead to implement this?



I let this stew for a day so I'm not going to get into actual record formats but comment on what a DNS does.

In short it takes an English (or words) and turns them into the IP address of the server. So let's go with your site is currently at goldfinch.com.
Why not put in a record for email.goldfinch.com and another for your web servers (www.goldfinch.com and goldfinch.com)?



I'm trying to change some DNS records on GoDaddy so the website for a domain name is hosted by a different company but still ensure that the e-mail service that GoDaddy hosts for that domain is not interrupted. I have worked with the basics of Name Servers and NX records before but I am cloudy on how to do this.

Thank You.


i am using opencv library for video streaming and it is working perfectly .

I have to ask since a single connection can pump 1080p video, 5.1 audio and text in less than a 5 megabit link. I can't imagine why you would create a socket for each today.

video and audio needs to be send altogether so we need three sockets as multiple client can connect to server and request the data.


Very little experience on streaming audio and video and that experience was largely unsuccessful, so this post comes from that perspective. That said, a few points...

  1. This is clearly Intro To Sockets skeleton code that you have posted. If you are new to sockets, I'd advise that you learn basic socket programming first, THEN move on to video and audio streaming. Add in multi-threading, multi-core, high bandwidth, etc., and it gets a lot more complex fast. You can't just scale "Hello World" socket code.
  2. The ".h" in your includes along with your bzero function instead of memset suggests this is rather old code. Audio/video streaming has changed radically in recent years, so you might need to update your learning source.
  3. There are a whole bunch of libraries out there. I don't see any of them included in your code. Make sure you aren't re-inventing the wheel. I certainly did, learning sound technology from the ground up, not understanding it, trying again, etc., etc., then finding a library that took one percent of the effort, one percent of the time, one percent of the knowledge, and worked a thousand times better than my pathetic code. Yes, I was able to write some functioning code pasted together with duct tape, but I don't get a medal for being able to do that from scratch where most couldn't. I get a dunce camp for doing it from scratch.
Votes + Comments
+1 for Hello World scaling.

"But on modern OSes you can have the same app do all three and let the OS run 3 instances"

Could you through some light on this in order to create different sockets . i am trying with same using multithreading in linux but not sure how to incorporate video and audio stuff in below code by creating multiple threads. even i am not able to exit by typing exit in client terminal. i believe i need to create two more tasks i.e. task2-video and task3-Audio needs to be created. Please coorect me if i am worng.

   #include <string.h>
    #include <unistd.h>
    #include <stdio.h>
    #include <netdb.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <iostream>
    #include <fstream>
    #include <strings.h>
    #include <stdlib.h>
    #include <string>
    #include <pthread.h>
    using namespace std;

    void *task1(void *);

    static int connFd;

    int main(int argc, char* argv[])
        int pId, portNo, listenFd;
        socklen_t len; //store size of the address
        bool loop = false;
        struct sockaddr_in svrAdd, clntAdd;

        pthread_t threadA[3];

        if (argc < 2)
            cerr << "Syntam : ./server <port>" << endl;
            return 0;

        portNo = atoi(argv[1]);

        if((portNo > 65535) || (portNo < 2000))
            cerr << "Please enter a port number between 2000 - 65535" << endl;
            return 0;

        //create socket
        listenFd = socket(AF_INET, SOCK_STREAM, 0);

        if(listenFd < 0)
            cerr << "Cannot open socket" << endl;
            return 0;

        bzero((char*) &svrAdd, sizeof(svrAdd));

        svrAdd.sin_family = AF_INET;
        svrAdd.sin_addr.s_addr = INADDR_ANY;
        svrAdd.sin_port = htons(portNo);

        //bind socket
        if(bind(listenFd, (struct sockaddr *)&svrAdd, sizeof(svrAdd)) < 0)
            cerr << "Cannot bind" << ...