selenium network connection settings - c#

my computer has two networks wifi and ethernet, to connect to a device other than ethernet I need to use this Subnetmask,gateway 10.86.96.3 / 255.255.255.0 / 10.86.96.1
I want to develop an application with selenium and access the device with these ip addresses only via selenium. can do the rest of my internet connection via computer wifi
Is this possible with selenium?

Related

How to pickup requested IPs from a LAN port

Assuming I had a WiFi router connected to my computer through a LAN cable (this one).
And assuming I had my phone connected to the WiFi router and would try to visit a website on my phone-browser.
What is the easiest way to pickup the requested website address with my computer?

c# get IP of a PC which turned network discovery off

I use the Ping class to test every possible address in the network. But PCs with the option: Turrn off network discovery do not respond to ping (windows can not discover them too). Is there any way to get the IP and name of these PCs?

Impinj connect doesn't work in port 8080

When I connect my impinj to my pc, I can ping it but I can't access to the web page with the port 8080.
The tutorial I used is : https://support.impinj.com/hc/en-us/articles/202756528-Keyboard-Wedge-with-Speedway-Connect-Software-VIDEO-
Could you tell me how can I access to
http://<reader host name>:8080
[Edit 1] I use the Speedway Revolution R420
The Impinj speedway readers actually have MDNS capability enabled by default and we use this to connect directly to them on a laptop via Ethernet.
Plug an Ethernet cable directly from your laptop to the reader and you can access it with http://169.254.1.1 and if you want the Speedway Connect interface, use https... The current version of speedway connect is 2.0.6.
Make sure the Octane firmware is updated also.

Windows 10 UWP app: StreamSocket via mobile broadband

I'm wondering how I can use the mobile broadband connection of a device from my application, written as a UWP app. I am using the following code that allows me to connect to the desired device via WiFi, but it isn't working via the mobile broadband connection. The device contains a Machine-To-Machine SIM card that links to our company network.
private async void button1_Click(object sender, RoutedEventArgs e) {
var sSocket = new Windows.Networking.Sockets.StreamSocket();
try {
var res = sSocket.ConnectAsync(new Windows.Networking.HostName("10.203.120.71"), "80");
await res.AsTask();
await NotifyUser(res.Status.ToString());
}
catch (Exception) {
await NotifyUser("Failed", "haha");
}
}
I haven't found any information on needing to use a different socket type for mobile internet connections, so I'm wondering what I'm missing here.
I am using the following code that allows me to connect to the desired device via WiFi, but it isn't working via the mobile broadband connection.
It's not the problem with StreamSocket connection, so couldn't you find any information on needing to use a different socket type for mobile internet connections.
"10.203.120.71" is a LAN IP address, when your computers are connected to a WiFi router, this router is first connected to your company's network, in other words, your computers are all connected inside of your company's LAN.
But when you use the broadband of your phone, the network of your phone is outside of your company's LAN, so can't this phone connected via this "10.203.120.71" address.
The device contains a Machine-To-Machine SIM card that links to our company network.
So if your phones link to your company network through WiFi, it should also work fine by this code. Otherwise you will probably need a VPN server for this, the phone can link to this VPN server through other IP address, and the VPN server can be connected to "10.203.120.71" address.
If this is not the reason which cause your problem, please check the exception to clarify the root cause.

Application connects to a different Wi-Fi network but receives same IP address

I’m working on a C# application. I need to know when the application connects to a different Wi-Fi network. The tricky part here is that the application is assigned the same IP address on both Wi-Fi networks:
The application is currently connected to Wi-Fi #1 with IP address 11.22.33.44.
On the PC where the application runs, I disconnect the PC from Wi-Fi #1.
The PC quickly connects to Wi-Fi #2 and is assigned the same IP address (in this example 11.22.33.44).
The application receives the NetworkChange.NetworkAddressChanged event.
The application loops in the network interfaces returned by NetworkInterface.GetAllNetworkInterfaces() in order to detect an IP address change (by checking if the IP address, assigned to a particular NetworkInterface.Id, has changed).
The problem is that the network interface information has not changed (NetworkInterface.OperationalStatus is still UP and the IP address is the same).
The NetworkChange.NetworkAvailabilityChanged event is not received. If the NetworkInterface.OperationalStatus was to DOWN and then back to UP, I could detect a change.
Any idea?
Is it possible to access the list of Wi-Fi network and find out which one the application is connected with?
Thanks!
Provided you are only interested in testing Wi-Fi networks, you could use the SSID to determine which network you are on.
Get SSID of the wireless network I am connected to with C# .Net on Windows Vista

Categories