Returning and editing proxy settings (Internet Options) through command prompt - command-line

I am wanting to see and edit the proxy settings that are found in the internet options of windows. I have tried: netsh winhttp show proxy but that returns nothing when there is a proxy in the internet options. If I use reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" | findstr ProxyServer AutoConfigURL then it will spit out the current proxy and port in the internet options which is what I need. Is there a way to return and/or add exceptions to the proxy? In the internet options when clicking "Advanced" you can enter exceptions separated by semicolons(;). Is there a way to do this through the command line? Thank you for any help!

Related

windows server advanced firewall not immediately apply changes to rule scope updated from powershell

I have a scheduled task which extract ip address from the list of failed login attempt on a sql machine, and update a firewall rule with something like this:
netsh advfirewall firewall set rule name="BlockIpFromSQLFailedLogin" new remoteip="192.168.0.1,192.168.0.2,192.168.0.3" action="block"
But it does not immediately have effect. After a while the firewall seems to reload it's configuration and finally starts blocking access for the new added ip addresses.
How can I force the firewall to immediately refresh and start blocking them?
I can see a similar behavior from the UI of windows advanced firewall, because after running the script if I open the rule and open the scope I can see the old list of ip address. If I click "refresh" the list is updated and the ip are blocked.
I can't seem to find how to force the firewall to refresh from a powershell script.
Anyone knows how to do it?

Change Listen Address Web Logic

I have a server running on weblogic 12c. But it is running on localhost:7001/myapp/.. I can run it by http://localhost:7001/myapp/... or http://127.0.01/myapp/... But only on the computer that weblogic is installed. I need to access from other computers. I have changed the Listen Address from localhost to my public IP, but when i did it, my server did not run anymore, it shows an error "Could not find lock file. Maybe the server is already running" something like that. I have already tried to delete the .lok file, but that did not work either. Tried to change the config.xml file, but that did not work either. Have this happenned to someone? How do I fix this?
I faced the same issue and below the answer, for stand alone Weblogic and even for embedded one, You want to change Listen Address, Just do the following steps:
If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
In the left pane of the Console, expand Environment and select Servers.
On the Servers page, click the name of the server.
Select Configuration > General.
On the Severs: Configuration: General page, enter a value in Listen Address.
Click Save.
To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
Not all changes take effect immediately—some require a restart (see Use the Change Center).
For (integrated weblogic only) on JDeveloper, open Application servers from windows menu, select Integrated weblogic, right-click on it, select Properties, select Configuration tab, Change hostname with the same IP address you put in Console
if your Weblogic server isn't production server, just ignore steps (1 & 7)
reference : https://docs.oracle.com/cd/E50629_01/wls/WLACH/taskhelp/channels/ConfigureListenAddresses.html
First you need to check what is running on 7001 port:
On windows use: netstat -ano|find /i "7001" it will give you something like :
TCP 0.0.0.0:7001 0.0.0.0 TIME_WAIT 1028
then you can kill that process using
taskkill /F /PID 1028 (java process started on 7001)
Now try to delete *.lok file from Domain/servers/AdminServer Path
and start admin server .
If you have nothing specified in listen address field it will listen on all the available network interfaces which can be check by ipconfig command on window
On linux use netstat -tulp|grep 7001 to find process
Did you see check if there is another application running on your public ip and the same port ?
Your Question is not at all clear. You say your server is running on a server and you can access it using the url http://localhost:7001/myapp/...
So that bit is clear.
Then you try to access your application from another machine. This where it gets confusing.
You say - "I have changed the Listen Address from localhost to my public IP, but when i did it, my server did not run anymore, it shows an error "Could not find lock file. Maybe the server is already running" something like that."
Why would your server stop running if all you did was try to access from a different machine ?
" The error could not find lock file " is usually seen when you try to start a server on a machine where there might be another server already running. But since your aim is only to access your already running server from a different machine you would do that using a browser, why start another instance ?
Could you throw some more light on what exactly you are doing and the result.
Few tips -
Check the listen address of your weblogic server from admin console.
Check if the server you are running weblogic has more than 1 ip. Run ifconfig or ipconfig to get the IP's

Fiddler not capturing traffic. Proxy settings keep getting changed

A few days ago, a yellow banner started to appear in Fiddler reporting that my proxy settings had changed and that if I clicked the yellow banner, I could re-enable Fiddler traffic capture.
Upon clicking, the banner and the error message wouldn't go, and Fiddler had stopped capturing all traffic.
I searched the Web and found how to change the proxy settings back to 127.0.0.1 and port 8888.
However, when I do that, something keeps setting the port number back to 63758.
The version of Fiddler I am using is v2.4.9.9 on a Windows 7 Home Premium PC.
Please see picture attached. What should I do?
This probably belongs on Superuser rather than StackOverflow.
You don't need to "search the web" to change your proxy settings, just click the big yellow bar.
You'll need to find what is changing your proxy settings. My guess is that you're infected with Adware like BrowserSafeguard or GeniusBox. You can either use netstat -a -o to find the process listening on the port in question, or you can use SysInternals' Process Monitor to watch the Proxy Server registry key and see who is changing it.

Enable and Configure proxy using CMD

seeking your support to create a bat (CMD) file that can be used by standard user and administrators that can configure the proxy settings and the port number to be as shown below
proxy : 10.10.10.10 port number : 1111 and
check mark bypass proxy settings and
add xxx.xxx.xxx.xxx to the exceptions
thank you in advance
On Windows, one can modify the network settings via commandline by using the netsh command.
For example, changing the proxy works as follows:
netsh winhttp set proxy myproxy
or in your scenario:
netsh winhttp set proxy 10.10.10.10:1111
Have a look at the detailed documentation here, and at this superuser thread

Eclipse->Prefrences->Network connections

In eclipse network connection, i need to select 'Active Provider' as 'Native' and add some proxy entries. But i am unable to do so. There is nothing to add proxy entries and its not picking the entries from web browser.
Pls help.
Thanks
Eclipse's Network Connections is depends on your Local Area Network (LAN) Settings.
For Windows, go to Control Panel -> Internet Options -> Connections -> LAN settings and add address and port of your favourite proxy server, then restart your Eclipse.