• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

USB Network - Can I Static the IP for Camera Config?

Fireboy153

Lurker
Jan 9, 2019
6
0
Hello, new here, and cant seem to find anything relevant on the interwebs... My Pixel 2xl is pretty darn good.
I recently decided to try a USB Network adapter, and I have success when i am on a network with DHCP. Just turn off WiFi and Date and im good. This is great for tuning Speed Tests, which i do often with my work.

Now the twist... I want to be able to use it to configure Ip Cameras, basically hook the POE and the camera to the phone. This is the order:
Pixel ---> POE---> Camera. This is typically done with a PC or Laptop, bot of which I prefer not to carry all the time. I would easily be able to adjust IP settings with these. Now with the phone, this would be a rather quick and easy thing, but I cannot seem to find a way to set the IP, only WiFi allows this, and that is not going to work.

Has anyone ever been able to change the IP via usb?

Current Service is Straight Talk, a flavor of TracFone that uses Verizon towers. Its got limitations, but does not hurt the pocket. I save $100 a month by shopping at Wal*Mart essentially. Could this be the issue?
 
In any typical LAN, the IP address , no matter if DHCP, assigned, or static, is a done by the network's gateway, usually that's your router. You cannot have just any device set it's own IP address, that would be a potential conflict issue as any other device might be set to use that same IP address. It has be determined and managed by a single source, again typically your router.
 
Upvote 0
In any typical LAN, the IP address , no matter if DHCP, assigned, or static, is a done by the network's gateway, usually that's your router. You cannot have just any device set it's own IP address, that would be a potential conflict issue as any other device might be set to use that same IP address. It has be determined and managed by a single source, again typically your router.

Thats is fairly understood, but my big question is for the scenario of an IP Camera or even and AP. When the device i want to hook to has an IP o lets say... 192.168.1.25 i would need to make sure i am on that same LAN, such as 192.168.1.10. if that is my IP, and the device is 10.10.20.15 then i would like to change it so it matches and I can get into it and configure it. i often find myself walkig into this situation. I walk around a large amusement park for a living, and if i were to carry everything i could need, it would be quite the mess to say the least. But on the good side, i would be in the best shape of my life.
In this scenario, there is no router, only the device to log into.
 
Upvote 0
When you have your phone working as a hotspot, it's essentially creating its own mini-network, but its functionality as a router is very, very limited. It is not meant to be a substitute for one either. It's basically just a kluge, a stop-gap function bolted on as a convenience, not something that was engineered into the mix from the beginning.
If you're connecting the IP camera to your hotspot-based WiFi, just use whatever IP address it has been assigned to interface with it. If you're using USB to connect to it directly, that's a different matter. At that point the IP address is irrelevant, interfacing with the camera is going through the USB bus.
 
Upvote 0
When you have your phone working as a hotspot, it's essentially creating its own mini-network, but its functionality as a router is very, very limited. It is not meant to be a substitute for one either. It's basically just a kluge, a stop-gap function bolted on as a convenience, not something that was engineered into the mix from the beginning.
If you're connecting the IP camera to your hotspot-based WiFi, just use whatever IP address it has been assigned to interface with it. If you're using USB to connect to it directly, that's a different matter. At that point the IP address is irrelevant, interfacing with the camera is going through the USB bus.

I am not using WiFi or Hotspot, so that part does not apply to this, but thanks for the info. Now via usb, its still an Ethernet adapter. Im looking to set the phone ip to match up with the device so i can access it., just as I would with a PC or Laptop.
I can turn of Data and WiFi and use the wired network to access the internet, so far as DHCP is on the network.
Static is the key, app or hardware solutions must exist! Thanks for the input
 
Upvote 0
As it's a USB Ethernet adapter, you're still just relying on your phone's hotspot-based networking, which is still going to be what determines what IP address gets assigned to the IP camera.
Another option if this is a frequent usage situation is to just pick up an off-the-shelf wireless router and bring it with you as a your own portable LAN with WiFi. As is it won't have Internet access but any consumer router will work as a basic LAN. Plug it in on site and then just connect your phone and IP camera(s) to the resulting WiFi to network them.
 
Upvote 0
Yes, usb c to ethernet.
Im not needing it to be a router, i feel thats where you may be pointing with the hotspot. but the cheezy router at home would do the trick. Still, just something else i gotta carry.
Back to hotspot, my current elcheapo plan does not support hotspot, so the option is off. I wonder... Will try with a coworker tomOrow, thanks!
 
Upvote 0
I did a little test for you. I have a USB Ethernet adapter connected to my network that i plugged into an OTG --> USB adapter. I put my phone in airplane mode, just to make sure there was no wireless data interfering and then plugged my contraption into my phone and sure enough I got a data connection and the adapter did get its IP from DHCP. As you found out there doesn't seem to be any sort of control panel for the new NIC where you can change the IP address. I looked in the play store hoping there might be something but it's either OTG apps for storage, or general network utilities that don't seem to address the adapter settings.

If you don't get any traction with the command line in a terminal session, then I'd say it was a good idea that didn't go anywhere.

If your goal is to get access to the adapter settings so that you can carry minimal hardware out in the field then I'd suggest picking up a old version MS Surface tablet ( I'm seeing them for ~$300) and using a USB network adapter. With that setup you can easily change the IP address to any subnet you'd like.
 
Upvote 0
I did a little test for you. I have a USB Ethernet adapter connected to my network that i plugged into an OTG --> USB adapter. I put my phone in airplane mode, just to make sure there was no wireless data interfering and then plugged my contraption into my phone and sure enough I got a data connection and the adapter did get its IP from DHCP. As you found out there doesn't seem to be any sort of control panel for the new NIC where you can change the IP address. I looked in the play store hoping there might be something but it's either OTG apps for storage, or general network utilities that don't seem to address the adapter settings.

If you don't get any traction with the command line in a terminal session, then I'd say it was a good idea that didn't go anywhere.

If your goal is to get access to the adapter settings so that you can carry minimal hardware out in the field then I'd suggest picking up a old version MS Surface tablet ( I'm seeing them for ~$300) and using a USB network adapter. With that setup you can easily change the IP address to any subnet you'd like.

Thanks, thats great to hear this. Its not %100 necessary for me, but i just thought the option would be nice. I will keep looking for sure, and report back when or if I get anywhere. Thanks again!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones