port

How to open ports on Windows firewall through batch file

元气小坏坏 提交于 2019-12-20 11:59:08
问题 Is there any way within a batch file to open up specific ports on Windows through a batch file? It would be nice to have the installer do this for our server application rather than having the user manually do it. 回答1: Use netsh.exe. A very simple batch file that takes a port argument: @echo off rem -- open port (first argument passed to batch script) netsh advfirewall firewall add rule name="Open Port %1" dir=in action=allow protocol=TCP localport=%1 remoteip=10.15.97.0/24,10.17.0.0/16 回答2:

selenium.common.exceptions.WebDriverException: Message: 'Can not connect to GhostDriver'

匆匆过客 提交于 2019-12-20 10:29:19
问题 I'm trying to run PhantomJS from within selenium.webdriver on a Centos server. PhantomJS is in the path and is running properly from terminal. However in the script it appears to be launched, but afterwards cannot be reached on the specified port (I tried 2 different opened ports from my provider 29842 and 60099, they both are not working and neither launching it without a specified port). The error happens here in selenium.webdriver.common.utils : try: socket_ = socket.socket(socket.AF_INET,

Can I configure a subdomain to point to a specific port on my server

早过忘川 提交于 2019-12-20 08:37:27
问题 I have an old computer which I converted into a minecraft server. I have 2 minecraft servers running simultaneously, one on port 25565 (default) and one on port 25566. I bought the domain something.com and pointed it to my server. Right now, in the game you type something.com to get into the first server and something.com:25566 to get into the other server. Is there a way to set one.something.com to point to the first server and two.something.com to point to the second server? I own the

Read variables of a message that is sent by a server using socket

霸气de小男生 提交于 2019-12-20 06:28:00
问题 I am working on Passenger information system PIS (Train).So trains send their location to my server PIS using socket on port 8080 .So i should get their locations and show them to passengers . The message that comes from the trains has a template that i should follow that. As you can see here : So as you can see here we have 6 variables . every integer is 4 byte . The first variable is(4 byte) message source and etc. In my server i have to detect these variable but i don't know how can i

Error sending edittext in java server. See code

耗尽温柔 提交于 2019-12-20 06:25:51
问题 Here is a working code of mine. But when I try to click the buttont that connects my client to port, my app crashes. See my code. public class Order extends Activity { Button GoBackHome; private Button button1, button3; private EditText txtbox1,txtbox2,txtbox3,txtbox4,textField; private TextView tv; Button PayNow; CheckBox chxbx1, chxbx2, chxbx3,chxbx4; @Override public void onBackPressed() { } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Workaround for PHP SOAP request failure when wsdl defines service port binding as https and port 80?

前提是你 提交于 2019-12-20 04:26:58
问题 I am consuming a SOAP web service using php5's soap extension. The service' wsdl was generated using Axis java2wsdl, and whatever options are used during generation result in the port binding url being listed as https ://xxx.xxx.xxx.xxx**:80** If I download the wsdl to my server, remove the port 80 specification from the port binding location value, and reference the local file in my soapclient call it works fine. However, if I try to reference it remotely (or download it and reference it

Receiving multiple multicast feeds on the same port - C, Linux

余生颓废 提交于 2019-12-20 02:17:19
问题 I have an application that is receiving data from multiple multicast sources on the same port. I am able to receive the data. However, I am trying to account for statistics of each group (i.e. msgs received, bytes received) and all the data is getting mixed up. Does anyone know how to solved this problem? If I try to look at the sender's address, it is not the multicast address, but rather the IP of the sending machine. I am using the following socket options: struct ip_mreq mreq; mreq.imr

iOS SDK: How can I check if a port is open?

巧了我就是萌 提交于 2019-12-20 00:43:46
问题 I have not found anything yet on how to check if a port is open or not. I tried to realize it with the AsyncSocket class but it returns always TRUE although I reject all connections to that port on my server. Additionally, I tried to use the isConnected method of AsyncSocket but that always returns FALSE. My code so far: //Init socket socket=[[AsyncSocket alloc] initWithDelegate:self]; //results on TRUE always! NSLog(@"Ready"); NSError *err = nil; if(![socket connectToHost:@"10.1.2.40" onPort

iOS SDK: How can I check if a port is open?

≯℡__Kan透↙ 提交于 2019-12-20 00:42:13
问题 I have not found anything yet on how to check if a port is open or not. I tried to realize it with the AsyncSocket class but it returns always TRUE although I reject all connections to that port on my server. Additionally, I tried to use the isConnected method of AsyncSocket but that always returns FALSE. My code so far: //Init socket socket=[[AsyncSocket alloc] initWithDelegate:self]; //results on TRUE always! NSLog(@"Ready"); NSError *err = nil; if(![socket connectToHost:@"10.1.2.40" onPort

Porting SHA512 Javascript implemention to Actionscript

一曲冷凌霜 提交于 2019-12-19 10:46:22
问题 I am wondering if anyone can help me in porting a SHA-512 implemention in Javascript to Actionscript. Since both Javascript and Actionscript share the same origin, I think porting it will be easy for people who are used to Actionscript. The code for sha512 in javascript can be found here: http://pajhome.org.uk/crypt/md5/sha512.html Thank you. 回答1: Here is the code ported by me. The code is separated between two files Int64.as and Sha512.as, both of them belong to the com.crypto package. com