Connecting to server prototype at localhost (127.0.0.1:8080)?

I’m running a server protoype in PyCharm using the Python http library and attempting to connect using WebInputStream in an Audio Plugin. So far unable to connect to 127.0.0.1:8080. I’m stepping inside the code and the issue is at this line:

connection = hasBeenCancelled ? nullptr
                              : InternetConnect (sessionHandle,
                                                 uc.lpszHostName, uc.nPort,
                                                 uc.lpszUserName, uc.lpszPassword,
                                                 isFtp ? (DWORD) INTERNET_SERVICE_FTP
                                                       : (DWORD) INTERNET_SERVICE_HTTP,
                                                 0, 0);

hasBeenCancelled is false, yet a nullptr is returned. I’m not able to step into InternetConnect (is it a macro?) to identify the issue. I am able to connect to juce.com, not sure where to go from here (or if connecting to localhost in general is problematic.

Solved, don’t forget to put http:// before your URL :confused:

URL('127.0.0.1:8080') //WRONG
URL('http://127.0.0.1:8080') //CORRECT
1 Like