[Solved] Android Development: How to create a network login via https [closed]

try{ String url = “https://SERVER-ADDRESS:PORT/site/login?username=” + user + “&password=” + password; HttpParams params = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(params, 1000 * 60 * 2); HttpConnectionParams.setSoTimeout(params, 0); HttpClient httpClient = new DefaultHttpClient(params); //prepare the HTTP GET call HttpGet httpget = new HttpGet(url); //get the response entity HttpEntity entity = httpClient.execute(httpget).getEntity(); if (entity != null) { //get the response … Read more

[Solved] Check If Port is Open in Python3?

This is a Python3 example I got from https://www.kite.com/python/answers/how-to-check-if-a-network-port-is-open-in-python import socket a_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) port = 8080 location = (“127.0.0.1”, port) check = a_socket.connect_ex(location) if check == 0: print(“Port is open”) else: print(“Port is not open”) 1 solved Check If Port is Open in Python3?

[Solved] How can I open application using C# from port 9999 [closed]

you could try this private void SendToServer(IPAddress IP, int Port) { try { TcpClient tcpclnt = new TcpClient(); tcpclnt.Connect(IP, Port); //your code here } UPDATE For the server you’ll use this public static void Main() { TcpListener serverSocket = new TcpListener(9999); TcpClient clientSocket = default(TcpClient); int counter = 0; serverSocket.Start(); Console.WriteLine(” >> ” + “Server … Read more